Fix the version check in _libtorrent to work as intended.

This commit is contained in:
Chase Sterling 2012-12-03 01:08:31 -05:00
parent ce4b4ef48e
commit 74d59eb6ec

View file

@ -47,7 +47,7 @@ supports.
REQUIRED_VERSION = "0.14.9.0"
def check_version(LT):
def check_version(lt):
from deluge.common import VersionSplit
if VersionSplit(lt.version) < VersionSplit(REQUIRED_VERSION):
raise ImportError("This version of Deluge requires libtorrent >=%s!" % REQUIRED_VERSION)