unicode() is not a standard python 3 function so using str() if python 3 test is true
This commit is contained in:
@@ -326,6 +326,8 @@ def write_plural_dict(filename, contents):
|
|||||||
|
|
||||||
|
|
||||||
def sort_function(x):
|
def sort_function(x):
|
||||||
|
if sys.version_info.major == 3: # python 3 compatibility
|
||||||
|
unicode = str
|
||||||
return unicode(x, 'utf-8').lower()
|
return unicode(x, 'utf-8').lower()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user