From d4445adf20438a8a43f770b0574965cc591e365e Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Tue, 16 Dec 2008 04:32:03 +0000 Subject: [PATCH] Fix importing system libtorrent --- deluge/core/alertmanager.py | 2 +- deluge/core/autoadd.py | 2 +- deluge/core/core.py | 2 +- deluge/core/oldstateupgrader.py | 2 +- deluge/core/preferencesmanager.py | 2 +- deluge/core/torrent.py | 2 +- deluge/core/torrentmanager.py | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/deluge/core/alertmanager.py b/deluge/core/alertmanager.py index 4019646b8..e49e96f2a 100644 --- a/deluge/core/alertmanager.py +++ b/deluge/core/alertmanager.py @@ -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 diff --git a/deluge/core/autoadd.py b/deluge/core/autoadd.py index 8c38bd3d9..befabfbc6 100644 --- a/deluge/core/autoadd.py +++ b/deluge/core/autoadd.py @@ -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 diff --git a/deluge/core/core.py b/deluge/core/core.py index ffee119a5..010426f19 100644 --- a/deluge/core/core.py +++ b/deluge/core/core.py @@ -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 diff --git a/deluge/core/oldstateupgrader.py b/deluge/core/oldstateupgrader.py index 12342b475..958d5fc56 100644 --- a/deluge/core/oldstateupgrader.py +++ b/deluge/core/oldstateupgrader.py @@ -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 diff --git a/deluge/core/preferencesmanager.py b/deluge/core/preferencesmanager.py index bd7885c49..a2cd35fde 100644 --- a/deluge/core/preferencesmanager.py +++ b/deluge/core/preferencesmanager.py @@ -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 diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py index 8114b643e..d0b5143c4 100644 --- a/deluge/core/torrent.py +++ b/deluge/core/torrent.py @@ -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 diff --git a/deluge/core/torrentmanager.py b/deluge/core/torrentmanager.py index c03c6cd99..16797ebda 100644 --- a/deluge/core/torrentmanager.py +++ b/deluge/core/torrentmanager.py @@ -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!")