File support-python-3.6.patch of Package mozc
diff --git a/src/base/gen_config_file_stream_data.py b/src/base/gen_config_file_stream_data.py
index c73a2c6a8..05869fdfd 100644
--- a/src/base/gen_config_file_stream_data.py
+++ b/src/base/gen_config_file_stream_data.py
@@ -69,8 +69,10 @@ def OutputConfigFileStreamData(path_list, output):
for path in path_list:
output.write(' {"%s", "' % os.path.basename(path))
with open(path, 'rb') as stream:
- while (byte := stream.read(1)):
+ byte = stream.read(1)
+ while (byte):
output.write(r'\x' + byte.hex())
+ byte = stream.read(1)
output.write('"},\n')
output.write('};\n')