Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP4:SLECandidates
mozc
support-python-3.6.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
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')
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor