Fix importing system libtorrent

This commit is contained in:
Andrew Resch 2008-12-16 04:32:03 +00:00
parent d91990d69f
commit c69ed31bd8
6 changed files with 6 additions and 6 deletions

View file

@ -32,7 +32,7 @@ try:
import deluge.libtorrent as lt
except ImportError:
import libtorrent as lt
if not (libtorrent.version_major == 0 and libtorrent.version_minor == 14):
if not (lt.version_major == 0 and lt.version_minor == 14):
raise ImportError("This version of Deluge requires libtorrent 0.14!")
from deluge.log import LOG as log

View file

@ -29,7 +29,7 @@ try:
import deluge.libtorrent as lt
except ImportError:
import libtorrent as lt
if not (libtorrent.version_major == 0 and libtorrent.version_minor == 14):
if not (lt.version_major == 0 and lt.version_minor == 14):
raise ImportError("This version of Deluge requires libtorrent 0.14!")
import deluge.component as component

View file

@ -42,7 +42,7 @@ try:
import deluge.libtorrent as lt
except ImportError:
import libtorrent as lt
if not (libtorrent.version_major == 0 and libtorrent.version_minor == 14):
if not (lt.version_major == 0 and lt.version_minor == 14):
raise ImportError("This version of Deluge requires libtorrent 0.14!")

View file

@ -33,7 +33,7 @@ try:
import deluge.libtorrent as lt
except ImportError:
import libtorrent as lt
if not (libtorrent.version_major == 0 and libtorrent.version_minor == 14):
if not (lt.version_major == 0 and lt.version_minor == 14):
raise ImportError("This version of Deluge requires libtorrent 0.14!")
from deluge.configmanager import ConfigManager

View file

@ -31,7 +31,7 @@ try:
import deluge.libtorrent as lt
except ImportError:
import libtorrent as lt
if not (libtorrent.version_major == 0 and libtorrent.version_minor == 14):
if not (lt.version_major == 0 and lt.version_minor == 14):
raise ImportError("This version of Deluge requires libtorrent 0.14!")
import deluge.common

View file

@ -36,7 +36,7 @@ try:
import deluge.libtorrent as lt
except ImportError:
import libtorrent as lt
if not (libtorrent.version_major == 0 and libtorrent.version_minor == 14):
if not (lt.version_major == 0 and lt.version_minor == 14):
raise ImportError("This version of Deluge requires libtorrent 0.14!")