SVN: r20400 - trunk/quixote
Andrew Kuchling <akuchlin-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]> Fri, 24 Jan 2003 10:38:18 -0500
| Newsgroups | gmane.comp.web.quixote.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: akuchlin
Date: 2003-01-24 10:38:17 -0500 (Fri, 24 Jan 2003)
New Revision: 20400
Modified:
trunk/quixote/upload.py
Log:
Open temp. file for uploaded data in binary mode
Modified: trunk/quixote/upload.py
==============================================================================
--- trunk/quixote/upload.py (original)
+++ trunk/quixote/upload.py 2003-01-24 10:38:18.000000000 -0500
@@ -153,7 +153,7 @@
("%.3f" % (now % 1))[1:])
filename = "upload.%s.%s" % (tstamp, os.getpid())
filename = os.path.join(dir, filename)
- ofile = open(filename, "w")
+ ofile = open(filename, "wb")
done = read_mime_part(file, boundary, ofile=ofile)
ofile.close()
self.tmp_filename = filename