summaryrefslogtreecommitdiffstats
path: root/deluge/core/torrent.py
diff options
context:
space:
mode:
Diffstat (limited to 'deluge/core/torrent.py')
-rw-r--r--deluge/core/torrent.py15
1 files changed, 1 insertions, 14 deletions
diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py
index ede5200f0..ee3669338 100644
--- a/deluge/core/torrent.py
+++ b/deluge/core/torrent.py
@@ -14,11 +14,10 @@ Attributes:
"""
-from __future__ import division, unicode_literals
-
import logging
import os
import socket
+from urllib.parse import urlparse
from twisted.internet.defer import Deferred, DeferredList
@@ -34,18 +33,6 @@ from deluge.event import (
TorrentTrackerStatusEvent,
)
-try:
- from urllib.parse import urlparse
-except ImportError:
- # PY2 fallback
- from urlparse import urlparse # pylint: disable=ungrouped-imports
-
-try:
- from future_builtins import zip
-except ImportError:
- # Ignore on Py3.
- pass
-
log = logging.getLogger(__name__)
LT_TORRENT_STATE_MAP = {