Skip to content

Commit

Permalink
IE-47: remove past from imports (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
KrzysztofBebenekArdigen authored Nov 23, 2020
1 parent a1969a2 commit 350af18
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tw2/jqplugins/jqgrid/widgets/sqla.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import math
import transaction

from past.builtins import cmp
from six import text_type
from six.moves import filter
from six.moves import map
Expand Down Expand Up @@ -123,7 +122,7 @@ def _get_properties(cls):
def relation_sorter(x, y):
xname = dotted_getattr(x, 'direction.name', 'a')
yname = dotted_getattr(y, 'direction.name', 'a')
return -1 * cmp(xname, yname)
return (xname < yname) - (xname > yname) # It's based on old cmp

props.sort(relation_sorter)

Expand Down

0 comments on commit 350af18

Please sign in to comment.