Skip to content

Commit b0b8d2f

Browse files
committed
Remove duplicate __cmp__ method.
1 parent 91dc822 commit b0b8d2f

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

sc2reader/data/__init__.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -289,18 +289,6 @@ def __hash__(self):
289289
def __repr__(self):
290290
return str(self)
291291

292-
def __cmp__(self, other):
293-
if other.id > self.id:
294-
return -1
295-
elif other.id < self.id:
296-
return 1
297-
else:
298-
if other.type > self.type:
299-
return -1
300-
elif other.type < self.type:
301-
return 1
302-
else:
303-
return 0
304292

305293
class Ability(object):
306294
pass

0 commit comments

Comments
 (0)