summaryrefslogtreecommitdiffstats
path: root/pyload/network/HTTPDownload.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-12 02:17:30 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-12 03:22:32 +0200
commit000426c9d890ba2a71625a7454f9c573f10b9bae (patch)
tree8fa66da5061b850778f72f84038d9bb8bfa31f2f /pyload/network/HTTPDownload.py
parent'from os' -> 'import os' and so on... (diff)
downloadpyload-000426c9d890ba2a71625a7454f9c573f10b9bae.tar.xz
'from time' -> 'import time' and so on...
Diffstat (limited to 'pyload/network/HTTPDownload.py')
-rw-r--r--pyload/network/HTTPDownload.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyload/network/HTTPDownload.py b/pyload/network/HTTPDownload.py
index 78e069f7e..959ffd111 100644
--- a/pyload/network/HTTPDownload.py
+++ b/pyload/network/HTTPDownload.py
@@ -5,10 +5,10 @@ from __future__ import with_statement
import os
import shutil
+import time
import pycurl
-from time import sleep, time
from logging import getLogger
from pyload.network.HTTPChunk import ChunkInfo, HTTPChunk
@@ -188,7 +188,7 @@ class HTTPDownload(object):
if ret != pycurl.E_CALL_MULTI_PERFORM:
break
- t = time()
+ t = time.time()
# reduce these calls
while lastFinishCheck + 0.5 < t:
@@ -275,7 +275,7 @@ class HTTPDownload(object):
if self.abort:
raise Abort
- # sleep(0.003) #: supress busy waiting - limits dl speed to (1 / x) * buffersize
+ # time.sleep(0.003) #: supress busy waiting - limits dl speed to (1 / x) * buffersize
self.m.select(1)
for chunk in self.chunks: