mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-12-05 08:00:36 +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 title == null: title = codepoint
|
||||||
if upper == null: upper = codepoint
|
if upper == null: upper = codepoint
|
||||||
if lower == null: lower = 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,
|
codepoint, script,
|
||||||
data['GeneralCategory'][0], data['GeneralCategory'],
|
data['GeneralCategory'][0], data['GeneralCategory'],
|
||||||
upper, lower, title,
|
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)
|
script_map = parse_property_mapping(sys.argv[1], 'sc', reverse=True)
|
||||||
for entry in parse_ucd_data(sys.argv[1], sys.argv[2]):
|
for entry in parse_ucd_data(sys.argv[1], sys.argv[2]):
|
||||||
if items:
|
if items:
|
||||||
print ','.join([str(entry[item]) for item in items])
|
print(','.join([str(entry[item]) for item in items]))
|
||||||
else:
|
else:
|
||||||
print entry
|
print(entry)
|
||||||
else:
|
else:
|
||||||
script_map = parse_property_mapping('data/ucd', 'sc', reverse=True)
|
script_map = parse_property_mapping('data/ucd', 'sc', reverse=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user