DEVTOOLS: COMPANION: Fix python error for createmacfonts
Error was in line 686: NameError: name 'io' is not defined. Did you mean: 'id'?
This commit is contained in:
parent
e3c2580734
commit
e442ce17e7
1 changed files with 1 additions and 1 deletions
|
@ -683,7 +683,7 @@ def create_macfonts(args: argparse.Namespace) -> int:
|
||||||
) as fontzip:
|
) as fontzip:
|
||||||
for hpath, obj in vol.iter_paths():
|
for hpath, obj in vol.iter_paths():
|
||||||
print(f"Compressing {hpath[-1]}...")
|
print(f"Compressing {hpath[-1]}...")
|
||||||
with io.BytesIO() as fonts_bytesio:
|
with BytesIO() as fonts_bytesio:
|
||||||
file_to_macbin(fonts_bytesio, obj, hpath[-1].encode("mac_roman"))
|
file_to_macbin(fonts_bytesio, obj, hpath[-1].encode("mac_roman"))
|
||||||
fontzip.writestr(f"{hpath[-1]}.bin", fonts_bytesio.getvalue())
|
fontzip.writestr(f"{hpath[-1]}.bin", fonts_bytesio.getvalue())
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue