Merge pull request #2075 from benlawraus/benlawraus

unicode() is not a standard python 3 function so using str() if pytho…
This commit is contained in:
mdipierro authored and GitHub committed 2019-02-03 21:10:43 -08:00
commit 3f56a0ad70
1 file changed
+2
+2
View File
@@ -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()