Skip to content

Commit 4354d0b

Browse files
committed
Fix file reading failure in non-ascii path
1 parent 9fa294e commit 4354d0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/not_impl_gen.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def get_module_methods(name):
104104
return None
105105
except Exception as e:
106106
print("!!! {} skipped because {}: {}".format(name, type(e).__name__, str(e)))
107-
107+
1
108108

109109
def gen_modules(header, footer, output):
110110
output.write(header.read())
@@ -124,7 +124,7 @@ def gen_modules(header, footer, output):
124124
print(
125125
f"""
126126
cpymods = {modules!r}
127-
libdir = {os.path.abspath("../Lib/")!r}
127+
libdir = {os.path.abspath("../Lib/").encode('utf8')!r}
128128
""",
129129
file=output,
130130
)

0 commit comments

Comments
 (0)