diff options
| author | Georg Brandl <georg@python.org> | 2007-02-11 23:06:17 +0000 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2007-02-11 23:06:17 +0000 |
| commit | 21dbf6781edb76ca48045a74e50c836e1e6349ca (patch) | |
| tree | a2b59b720763ae1c6c06786d458140a54d628be9 /Lib/optparse.py | |
| parent | e0ae918fd865766f004316c55ddce4e23a1fb826 (diff) | |
| download | cpython-21dbf6781edb76ca48045a74e50c836e1e6349ca.tar.gz | |
Checkin the regenerated Python-ast.c and fix test_optparse.
Diffstat (limited to 'Lib/optparse.py')
| -rw-r--r-- | Lib/optparse.py | 3 |
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) |
