diff Lib/argparse.py @ 59423:0802bc973b32 legacy-trunk

eliminate py3k warnings in argparse
author Benjamin Peterson <benjamin@python.org>
date Sun, 07 Mar 2010 00:29:44 +0000
parents eba942e77895
children 4ceb5dc35cc6
line wrap: on
line diff
--- a/Lib/argparse.py	Sun Mar 07 00:00:37 2010 +0000
+++ b/Lib/argparse.py	Sun Mar 07 00:29:44 2010 +0000
@@ -1143,6 +1143,8 @@
         for name in kwargs:
             setattr(self, name, kwargs[name])
 
+    __hash__ = None
+
     def __eq__(self, other):
         return vars(self) == vars(other)