Skip to content

Commit 10932b4

Browse files
committed
Compare bytes instead of decoded text if rebuilding parser generator
1 parent 1131a06 commit 10932b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graalpython/com.oracle.graal.python.pegparser.generator/main_asdl_gen.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@
4646
def stamp(sst_path: pathlib.Path, ast_path: pathlib.Path):
4747
if sst_path.is_dir() and ast_path.is_dir():
4848
return [
49-
p.read_text() for p in sorted(sst_path.rglob("*")) if p.is_file()
49+
p.read_bytes() for p in sorted(sst_path.rglob("*")) if p.is_file()
5050
] + [
51-
p.read_text() for p in sorted(ast_path.rglob("*")) if p.is_file()
51+
p.read_bytes() for p in sorted(ast_path.rglob("*")) if p.is_file()
5252
]
5353
else:
5454
return []

0 commit comments

Comments
 (0)