mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 13:38:47 +00:00
Python 3 compatibility fixes.
This commit is contained in:
+2
-2
@@ -63,8 +63,8 @@ if __name__ == '__main__':
|
||||
if title == null: title = codepoint
|
||||
if upper == null: upper = codepoint
|
||||
if lower == null: lower = codepoint
|
||||
print '%s %s %s %s %s %s %s %s' % (
|
||||
print('%s %s %s %s %s %s %s %s' % (
|
||||
codepoint, script,
|
||||
data['GeneralCategory'][0], data['GeneralCategory'],
|
||||
upper, lower, title,
|
||||
' '.join(data['Properties']))
|
||||
' '.join(data['Properties'])))
|
||||
|
||||
+2
-2
@@ -188,8 +188,8 @@ if __name__ == '__main__':
|
||||
script_map = parse_property_mapping(sys.argv[1], 'sc', reverse=True)
|
||||
for entry in parse_ucd_data(sys.argv[1], sys.argv[2]):
|
||||
if items:
|
||||
print ','.join([str(entry[item]) for item in items])
|
||||
print(','.join([str(entry[item]) for item in items]))
|
||||
else:
|
||||
print entry
|
||||
print(entry)
|
||||
else:
|
||||
script_map = parse_property_mapping('data/ucd', 'sc', reverse=True)
|
||||
|
||||
Reference in New Issue
Block a user