summaryrefslogtreecommitdiffstats
path: root/module/network
diff options
context:
space:
mode:
Diffstat (limited to 'module/network')
-rw-r--r--module/network/HTTPDownload.py6
-rw-r--r--module/network/HTTPRequest.py2
2 files changed, 4 insertions, 4 deletions
diff --git a/module/network/HTTPDownload.py b/module/network/HTTPDownload.py
index fe8075539..0d5fc59c9 100644
--- a/module/network/HTTPDownload.py
+++ b/module/network/HTTPDownload.py
@@ -17,9 +17,9 @@
@author: RaNaN
"""
-from os import remove, fsync
+from os import remove
from os.path import dirname
-from time import sleep, time
+from time import time
from shutil import move
from logging import getLogger
@@ -28,7 +28,7 @@ import pycurl
from HTTPChunk import ChunkInfo, HTTPChunk
from HTTPRequest import BadHeader
-from module.plugins.Plugin import Abort
+from module.plugins.Hoster import Abort
from module.utils import save_join, fs_encode
class HTTPDownload():
diff --git a/module/network/HTTPRequest.py b/module/network/HTTPRequest.py
index d4c33bbff..cd13dd01f 100644
--- a/module/network/HTTPRequest.py
+++ b/module/network/HTTPRequest.py
@@ -25,7 +25,7 @@ from httplib import responses
from logging import getLogger
from cStringIO import StringIO
-from module.plugins.Plugin import Abort
+from module.plugins.Hoster import Abort
def myquote(url):
return quote(url.encode('utf_8') if isinstance(url, unicode) else url, safe="%/:=&?~#+!$,;'@()*[]")