diff options
author | Mark Spruiell <mes@zeroc.com> | 2007-09-20 13:30:31 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2007-09-20 13:30:31 -0700 |
commit | 68bf30f70c20adbea9c34099026393fa2aa768a4 (patch) | |
tree | ba084713bbd1d0cb278195ec2bed97444fba8a92 /py/python/Ice.py | |
parent | fix for compilation errors with Python 2.5 (diff) | |
download | ice-68bf30f70c20adbea9c34099026393fa2aa768a4.tar.bz2 ice-68bf30f70c20adbea9c34099026393fa2aa768a4.tar.xz ice-68bf30f70c20adbea9c34099026393fa2aa768a4.zip |
changing __eq__ to __cmp__ for structs means we can remove some
methods that Ice.py added to Ice.Identity
Diffstat (limited to 'py/python/Ice.py')
-rw-r--r-- | py/python/Ice.py | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/py/python/Ice.py b/py/python/Ice.py index 32d9696314f..3afd16263f8 100644 --- a/py/python/Ice.py +++ b/py/python/Ice.py @@ -976,39 +976,6 @@ def Identity__str__(self): Identity.__str__ = Identity__str__ del Identity__str__ -def Identity__lt__(self, other): - if self.category < other.category: - return True - elif self.category == other.category: - return self.name < other.name - return False -Identity.__lt__ = Identity__lt__ -del Identity__lt__ - -def Identity__le__(self, other): - return self.__lt__(other) or self.__eq__(other) -Identity.__le__ = Identity__le__ -del Identity__le__ - -def Identity__ne__(self, other): - return not self.__eq__(other) -Identity.__ne__ = Identity__ne__ -del Identity__ne__ - -def Identity__gt__(self, other): - if self.category > other.category: - return True - elif self.category == other.category: - return self.name > other.name - return False -Identity.__gt__ = Identity__gt__ -del Identity__gt__ - -def Identity__ge__(self, other): - return self.__gt__(other) or self.__eq__(other) -Identity.__ge__ = Identity__ge__ -del Identity__ge__ - # # Annotate some exceptions. # |