summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2016-07-19 20:06:27 +0100
committerCalum Lind <calumlind+deluge@gmail.com>2016-07-19 20:06:27 +0100
commit454c7be364be2d90dcf7c7646603f2d7c769e166 (patch)
tree31de873d86216f00671eec92b023494f6bd7e060
parent85fdacc0e7fcf2fab6030ce7876e32d06c2d030c (diff)
downloaddeluge-454c7be364be2d90dcf7c7646603f2d7c769e166.tar.gz
deluge-454c7be364be2d90dcf7c7646603f2d7c769e166.tar.bz2
deluge-454c7be364be2d90dcf7c7646603f2d7c769e166.zip
Revert "[#2852] Set maximum supported libtorrent version to 1.0.x"
This reverts commit 852b51f224ef47a1b658dd9e24ba04171dd0e940. Changes applied for libtorrent 1.1.1 release should bring back backward compatibility for Deluge 1.3.
-rw-r--r--deluge/_libtorrent.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/deluge/_libtorrent.py b/deluge/_libtorrent.py
index e2818df80..e68e53580 100644
--- a/deluge/_libtorrent.py
+++ b/deluge/_libtorrent.py
@@ -46,17 +46,11 @@ supports.
"""
REQUIRED_VERSION = "0.14.9.0"
-# The first major version (and all subsequent ones) to be unsupported.
-UNSUPPORTED_VERSION = "1.1.0.0"
-
def check_version(lt):
from deluge.common import VersionSplit
- if (VersionSplit(lt.version) < VersionSplit(REQUIRED_VERSION) or
- VersionSplit(lt.version) >= VersionSplit(UNSUPPORTED_VERSION)):
- raise ImportError("This version of Deluge requires libtorrent >=%s and not >= %s."
- % (REQUIRED_VERSION, UNSUPPORTED_VERSION))
-
+ if VersionSplit(lt.version) < VersionSplit(REQUIRED_VERSION):
+ raise ImportError("This version of Deluge requires libtorrent >=%s!" % REQUIRED_VERSION)
try:
import deluge.libtorrent as lt