eliminate py3k warnings in argparse

This commit is contained in:
Benjamin Peterson 2010-03-07 00:29:44 +00:00
parent 9c4742e6ce
commit 6b31fd0f13
2 changed files with 12 additions and 0 deletions

View file

@ -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)