summaryrefslogtreecommitdiff
path: root/Lib/optparse.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-02-11 23:06:17 +0000
committerGeorg Brandl <georg@python.org>2007-02-11 23:06:17 +0000
commit21dbf6781edb76ca48045a74e50c836e1e6349ca (patch)
treea2b59b720763ae1c6c06786d458140a54d628be9 /Lib/optparse.py
parente0ae918fd865766f004316c55ddce4e23a1fb826 (diff)
downloadcpython-21dbf6781edb76ca48045a74e50c836e1e6349ca.tar.gz
Checkin the regenerated Python-ast.c and fix test_optparse.
Diffstat (limited to 'Lib/optparse.py')
-rw-r--r--Lib/optparse.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/optparse.py b/Lib/optparse.py
index 5122e4974b..8e1ef52b94 100644
--- a/Lib/optparse.py
+++ b/Lib/optparse.py
@@ -611,8 +611,7 @@ class Option:
else:
setattr(self, attr, None)
if attrs:
- attrs = attrs.keys()
- attrs.sort()
+ attrs = sorted(attrs.keys())
raise OptionError(
"invalid keyword arguments: %s" % ", ".join(attrs),
self)