Skip to content

Commit 2fdaa7f

Browse files
committed
Changed sort() argument to use key=
- Legacy-Id: 16314
1 parent 240d5bc commit 2fdaa7f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/meeting/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
from ietf.utils.models import ForeignKey
3535

3636
countries = list(pytz.country_names.items())
37-
countries.sort(lambda x,y: cmp(x[1], y[1]))
37+
countries.sort(key=lambda x: x[1])
3838

3939
timezones = []
4040
for name in pytz.common_timezones:

0 commit comments

Comments
 (0)