Skip to content

Commit cde8c9a

Browse files
committed
One more edit: use rb mode for file and tomli.load(f)
1 parent 1611bbd commit cde8c9a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bin/data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,8 @@ class TestsTOML:
354354

355355
@classmethod
356356
def load(cls, toml_path: Path):
357-
with toml_path.open() as f:
358-
data = tomli.loads(f)
357+
with toml_path.open("rb") as f:
358+
data = tomli.load(f)
359359
return cls({uuid: TestCaseTOML(uuid, *opts) for
360360
uuid, opts in
361361
data.items() if

0 commit comments

Comments
 (0)