1
0
Fork 0

Change file open mode to 'wb'

FFI used in the project uses bytes instead of str for writing purposes.
python3
vibe 2023-11-12 22:56:21 +01:00
parent 92a1286055
commit 7f2cfd5b31
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ def stuff_print(size):
r = Renderer()
r.render_text(text, 'Sans {}'.format(size), 0, -1, html)
path = '/tmp/hslabel'
f = open(path, 'w')
f = open(path, 'wb')
r.surface.write_to_png(f)
f.flush()