[psy_il] do python 25 compatible import for pysqlite in common/logger.py too

This commit is contained in:
Nikos Kouremenos 2006-10-24 16:04:21 +00:00
parent 42621a44be
commit c841e3b744
1 changed files with 5 additions and 2 deletions

View File

@ -22,9 +22,12 @@ 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:
raise exceptions.PysqliteNotAvailable try:
from pysqlite2 import dbapi2 as sqlite
except ImportError:
raise exceptions.PysqliteNotAvailable
if os.name == 'nt': if os.name == 'nt':
try: try: