mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
override-by-name.py: compare to bytes
This commit is contained in:
committed by
Alessandro Di Federico
parent
15f0d72b3a
commit
e18c8ec0e3
@@ -72,7 +72,7 @@ class ModelOverrideByName(Command):
|
||||
|
||||
# Check if it's YAML
|
||||
saved_file.seek(0)
|
||||
input_is_yaml = saved_file.read(3) == "---"
|
||||
input_is_yaml = saved_file.read(3) == b"---"
|
||||
|
||||
# Extract model, if necessary
|
||||
result = run_revng_command(
|
||||
|
||||
Reference in New Issue
Block a user