diff options
author | Vincent Vinet <vince.vinet@gmail.com> | 2009-10-23 19:08:32 (GMT) |
---|---|---|
committer | Vincent Vinet <vince.vinet@gmail.com> | 2009-10-23 19:08:32 (GMT) |
commit | 704e35494433a11ecdcf675fff7cfccaa8bbd2ec (patch) | |
tree | 0757d4f3fa7cc0613135897d65e5fa827d4abb41 /tutorius/properties.py | |
parent | fa1197aad8d56b43bdf57ec3ad3ef9b9216d1376 (diff) |
fix some of the tests, fix some bugs
Diffstat (limited to 'tutorius/properties.py')
-rw-r--r-- | tutorius/properties.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tutorius/properties.py b/tutorius/properties.py index 78e3c2b..cbb2ae3 100644 --- a/tutorius/properties.py +++ b/tutorius/properties.py @@ -104,7 +104,7 @@ class TPropContainer(object): return hash(tuple(map(tuple,sorted(self._props.items(), cmp=lambda x, y: cmp(x[0], y[0]))))) def __eq__(self, e2): - return self._props == e2._props + return isinstance(e2, type(self)) and self._props == e2._props # Adding methods for pickling and unpickling an object with # properties |