summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command/install.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-08-31 10:37:15 (GMT)
committerGeorg Brandl <georg@python.org>2007-08-31 10:37:15 (GMT)
commit7f13e6b3e2546a7d6402f969113d928cc1d58dfc (patch)
tree1b6b41e5a53beb659964a72d8f064c9ecdb0d5ed /Lib/distutils/command/install.py
parent226878cba507cff4b6ce094063682d0b0b53cbb9 (diff)
downloadcpython-7f13e6b3e2546a7d6402f969113d928cc1d58dfc.zip
cpython-7f13e6b3e2546a7d6402f969113d928cc1d58dfc.tar.gz
cpython-7f13e6b3e2546a7d6402f969113d928cc1d58dfc.tar.bz2
string.maketrans() now produces translation tables for bytes.translate() -- wrong module?
Fix all remaining instances that did bad things with the new str.translate().
Diffstat (limited to 'Lib/distutils/command/install.py')
-rw-r--r--Lib/distutils/command/install.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/distutils/command/install.py b/Lib/distutils/command/install.py
index 29cda1e..ffd68db 100644
--- a/Lib/distutils/command/install.py
+++ b/Lib/distutils/command/install.py
@@ -348,11 +348,10 @@ class install (Command):
if opt_name[-1] == "=":
opt_name = opt_name[0:-1]
if self.negative_opt.has_key(opt_name):
- opt_name = self.negative_opt[opt_name].translate(
- longopt_xlate)
+ opt_name = longopt_xlate(self.negative_opt[opt_name])
val = not getattr(self, opt_name)
else:
- opt_name = opt_name.translate(longopt_xlate)
+ opt_name = longopt_xlate(opt_name)
val = getattr(self, opt_name)
print(" %s: %s" % (opt_name, val))