From b23131b3d652bed8c267b26cf5e2030399ffd342 Mon Sep 17 00:00:00 2001 From: Ben Lawrence Date: Thu, 17 Jan 2019 09:58:56 -0800 Subject: [PATCH] unicode() is not a standard python 3 function so using str() if python 3 test is true --- gluon/languages.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gluon/languages.py b/gluon/languages.py index af7bc326..2eac092e 100644 --- a/gluon/languages.py +++ b/gluon/languages.py @@ -326,6 +326,8 @@ def write_plural_dict(filename, contents): def sort_function(x): + if sys.version_info.major == 3: # python 3 compatibility + unicode = str return unicode(x, 'utf-8').lower()