[py-svn] r37346 - py/trunk/py/code
fijal at codespeak.net
fijal at codespeak.net
Thu Jan 25 18:02:33 CET 2007
Author: fijal
Date: Thu Jan 25 18:02:32 2007
New Revision: 37346
Modified:
py/trunk/py/code/code.py
Log:
Add __ne__
Modified: py/trunk/py/code/code.py
==============================================================================
--- py/trunk/py/code/code.py (original)
+++ py/trunk/py/code/code.py Thu Jan 25 18:02:32 2007
@@ -13,7 +13,10 @@
self.name = rawcode.co_name
def __eq__(self, other):
- return self.raw == other.raw
+ return self.raw == other.raw
+
+ def __ne__(self):
+ return not self == other
def new(self, rec=False, **kwargs):
""" return new code object with modified attributes.
More information about the pytest-commit
mailing list