Fix importing system libtorrent

This commit is contained in:
Andrew Resch 2008-12-16 04:32:03 +00:00
parent 24a0ccee0a
commit d4445adf20
7 changed files with 7 additions and 7 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

@ -43,7 +43,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.configmanager

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.configmanager

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!")
import deluge.common

View File

@ -37,7 +37,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!")