mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
eliminate py3k warnings in argparse
This commit is contained in:
parent
9c4742e6ce
commit
6b31fd0f13
2 changed files with 12 additions and 0 deletions
|
|
@ -1143,6 +1143,8 @@ class Namespace(_AttributeHolder):
|
|||
for name in kwargs:
|
||||
setattr(self, name, kwargs[name])
|
||||
|
||||
__hash__ = None
|
||||
|
||||
def __eq__(self, other):
|
||||
return vars(self) == vars(other)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue