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