File tree Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -276,31 +276,14 @@ def __str__(self):
276
276
return "{0} [{1:X}]" .format (self .name , self .id )
277
277
278
278
def __cmp__ (self , other ):
279
- if self ._cmp_val == other ._cmp_val :
280
- return 0
281
- elif self ._cmp_val > other ._cmp_val :
282
- return 1
283
- else :
284
- return - 1
279
+ return cmp (self ._cmp_val , other ._cmp_val )
285
280
286
281
def __hash__ (self ):
287
282
return hash (self ._cmp_val )
288
283
289
284
def __repr__ (self ):
290
285
return str (self )
291
286
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
304
287
305
288
class Ability (object ):
306
289
pass
You can’t perform that action at this time.
0 commit comments