Browse Source

drop support for python 2.7>

All Python 2.7 environements are expect to have
sqlite module compiled.
oz123 11 years ago
parent
commit
08da323212
1 changed files with 1 additions and 4 deletions
  1. 1 4
      pwman/data/factory.py

+ 1 - 4
pwman/data/factory.py

@@ -31,14 +31,11 @@ db.open()
 .....
 """
 from pwman.data.database import DatabaseException
+from pwman.data.drivers import sqlite
 
 
 def check_db_version(type):
     if type == "SQLite":
-        try:
-            from pwman.data.drivers import sqlite
-        except ImportError:
-            raise DatabaseException("python-sqlite not installed")
         ver = sqlite.check_db_version()
         return ver
      # TODO: implement version checks for other supported DBs.