mirror of
https://github.com/python/cpython.git
synced 2025-08-23 18:24:46 +00:00
Checkin the regenerated Python-ast.c and fix test_optparse.
This commit is contained in:
parent
07f2436fa8
commit
c2d9d7f489
2 changed files with 2 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue