summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2009-11-12 19:11:56 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2009-11-12 19:11:56 +0100
commitb6822d46aa0f566a8252a8eb17ee4018ab2f1252 (patch)
tree4d55761a8f97b2c2430ae62c2458682739e7dcb1 /module
parentwebserver listens now on all ip addresses (can be configured in the config file) (diff)
downloadpyload-b6822d46aa0f566a8252a8eb17ee4018ab2f1252.tar.xz
fixed python25 compatibility
Diffstat (limited to 'module')
-rw-r--r--module/download_thread.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/module/download_thread.py b/module/download_thread.py
index ff9c25766..158d40147 100644
--- a/module/download_thread.py
+++ b/module/download_thread.py
@@ -88,8 +88,9 @@ class Download_Thread(threading.Thread):
except Checksum, e:
self.loadedPyFile.status.type = "failed"
self.loadedPyFile.status.error = "Checksum error: %d" % e.getCode()
- with open("%s.info" % e.getFile(), "w") as f:
- f.write("Checksum not matched!")
+ f = open("%s.info" % e.getFile(), "w")
+ f.write("Checksum not matched!")
+ f.close()
except Exception, e:
try: