unicode() is not a standard python 3 function so using str() if python 3 test is true

This commit is contained in:
Ben Lawrence
2019-01-17 09:58:56 -08:00
parent cef31f1277
commit b23131b3d6
+2
View File
@@ -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()