[psy_il] do python 25 compatible import for pysqlite in common/logger.py too
This commit is contained in:
parent
42621a44be
commit
c841e3b744
|
@ -22,9 +22,12 @@ import exceptions
|
|||
import gajim
|
||||
|
||||
try:
|
||||
from pysqlite2 import dbapi2 as sqlite
|
||||
import sqlite3 as sqlite # python 2.5
|
||||
except ImportError:
|
||||
raise exceptions.PysqliteNotAvailable
|
||||
try:
|
||||
from pysqlite2 import dbapi2 as sqlite
|
||||
except ImportError:
|
||||
raise exceptions.PysqliteNotAvailable
|
||||
|
||||
if os.name == 'nt':
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue