[Python-checkins] distutils2: avoid variable obfuscation
tarek.ziade
python-checkins at python.org
Tue Apr 13 02:24:57 CEST 2010
tarek.ziade pushed 308e44304a5e to distutils2:
http://hg.python.org/distutils2/rev/308e44304a5e
changeset: 117:308e44304a5e
tag: tip
user: Tarek Ziade <tarek at ziade.org>
date: Tue Apr 13 02:23:48 2010 +0200
summary: avoid variable obfuscation
files: src/distutils2/command/upload.py
diff --git a/src/distutils2/command/upload.py b/src/distutils2/command/upload.py
--- a/src/distutils2/command/upload.py
+++ b/src/distutils2/command/upload.py
@@ -127,12 +127,12 @@
content_dispo = 'Content-Disposition: form-data; name="%s"' % key
if key in file_fields:
- filename, content = values
- filename = ';filename="%s"' % filename
+ filename_, content = values
+ filename_ = ';filename="%s"' % filename_
body.write(sep_boundary)
body.write("\n")
body.write(content_dispo)
- body.write(filename)
+ body.write(filename_)
body.write("\n\n")
body.write(content)
else:
--
Repository URL: http://hg.python.org/distutils2
More information about the Python-checkins
mailing list