diff options
author | mkaay <mkaay@mkaay.de> | 2009-11-12 19:11:56 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2009-11-12 19:11:56 +0100 |
commit | b6822d46aa0f566a8252a8eb17ee4018ab2f1252 (patch) | |
tree | 4d55761a8f97b2c2430ae62c2458682739e7dcb1 /module | |
parent | webserver listens now on all ip addresses (can be configured in the config file) (diff) | |
download | pyload-b6822d46aa0f566a8252a8eb17ee4018ab2f1252.tar.xz |
fixed python25 compatibility
Diffstat (limited to 'module')
-rw-r--r-- | module/download_thread.py | 5 |
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: |