Changed sort() argument to use key=

- Legacy-Id: 16314
This commit is contained in:
Henrik Levkowetz 2019-06-27 18:10:13 +00:00
parent 240d5bc64d
commit 2fdaa7f9c4

View file

@ -34,7 +34,7 @@ from ietf.utils.timezone import date2datetime
from ietf.utils.models import ForeignKey
countries = list(pytz.country_names.items())
countries.sort(lambda x,y: cmp(x[1], y[1]))
countries.sort(key=lambda x: x[1])
timezones = []
for name in pytz.common_timezones: