summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command
diff options
context:
space:
mode:
authorPhillip J. Eby <pje@telecommunity.com>2005-07-07 15:36:20 (GMT)
committerPhillip J. Eby <pje@telecommunity.com>2005-07-07 15:36:20 (GMT)
commit5cb784629f4d05a2621db28e6c2a07e6f38095c9 (patch)
treea53c4245c3be2097263cb682ba9dabb77cb00ffa /Lib/distutils/command
parent4c3259cbb9df3b0a2f0a5ada23d4f71481e8cf7c (diff)
downloadcpython-5cb784629f4d05a2621db28e6c2a07e6f38095c9.zip
cpython-5cb784629f4d05a2621db28e6c2a07e6f38095c9.tar.gz
cpython-5cb784629f4d05a2621db28e6c2a07e6f38095c9.tar.bz2
Fix "upload" command garbling and truncating files on Windows. If it's a
binary file, use 'rb'!
Diffstat (limited to 'Lib/distutils/command')
-rw-r--r--Lib/distutils/command/upload.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/command/upload.py b/Lib/distutils/command/upload.py
index 7b08336..3b5a0fc 100644
--- a/Lib/distutils/command/upload.py
+++ b/Lib/distutils/command/upload.py
@@ -71,7 +71,7 @@ class upload(Command):
dry_run=self.dry_run)
# Fill in the data
- content = open(filename).read()
+ content = open(filename,'rb').read()
data = {
':action':'file_upload',
'protcol_version':'1',