import simplejson
import os.path
import os
+from builtins import str
class DojoResource (basel10n.BaseL10N):
"""
print("Reading Dojo resource file %s" % (source))
raise
- for key, value in bundle.iteritems():
+ for key, value in bundle.items():
if value in msgids:
- msgids[unicode(value)].occurrences.append((os.path.basename(source), str(key)))
+ msgids[str(value)].occurrences.append((os.path.basename(source), str(key)))
else:
poe = polib.POEntry()
poe.occurrences = [(os.path.basename(source), str(key))]
- poe.msgid = unicode(value)
- msgids[unicode(value)] = poe
+ poe.msgid = str(value)
+ msgids[str(value)] = poe
# Now add the POEntries to our POFile
for poe in msgids.values():