summaryrefslogtreecommitdiffstats
path: root/pyload/network/HTTPDownload.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-12 02:00:28 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-12 03:22:29 +0200
commit0349b81a10d2937897f30031c4dedb49aa132d8c (patch)
tree3db2827cd64888cc013e064d4e201b8a6ddbc7a9 /pyload/network/HTTPDownload.py
parentMerge pull request #12 from GammaC0de/GammaC0de-fix-api (diff)
downloadpyload-0349b81a10d2937897f30031c4dedb49aa132d8c.tar.xz
'from os' -> 'import os' and so on...
Diffstat (limited to 'pyload/network/HTTPDownload.py')
-rw-r--r--pyload/network/HTTPDownload.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/pyload/network/HTTPDownload.py b/pyload/network/HTTPDownload.py
index 62cef457b..78e069f7e 100644
--- a/pyload/network/HTTPDownload.py
+++ b/pyload/network/HTTPDownload.py
@@ -3,18 +3,16 @@
from __future__ import with_statement
+import os
import shutil
import pycurl
-from os import remove, fsync
-from os.path import dirname
from time import sleep, time
from logging import getLogger
from pyload.network.HTTPChunk import ChunkInfo, HTTPChunk
from pyload.network.HTTPRequest import BadHeader
-
from pyload.plugin.Plugin import Abort
from pyload.utils import fs_join, fs_encode
@@ -101,7 +99,7 @@ class HTTPDownload(object):
reshutil.move(fname) #: remove chunk
if self.nameDisposition and self.disposition:
- self.filename = fs_join(dirname(self.filename), self.nameDisposition)
+ self.filename = fs_join(os.path.dirname(self.filename), self.nameDisposition)
shutil.move(init, fs_encode(self.filename))
self.info.remove() #: remove info file
@@ -307,7 +305,7 @@ class HTTPDownload(object):
chunk.close()
- def close(self):
+ def os.close(self):
""" cleanup """
for chunk in self.chunks:
self.closeChunk(chunk)