diff options
author | Michael Bourke <michael@iter8ve.com> | 2022-01-17 10:43:53 +1100 |
---|---|---|
committer | Michael Bourke <michael@iter8ve.com> | 2022-01-17 10:43:53 +1100 |
commit | 00cd87d40000f552f131f77e29397325b4051a14 (patch) | |
tree | 449ede3c59a7afeadb01ee4021244a23c760221e | |
parent | 7e52b60b7dac75a3c7177e69244123c0dad9e9d9 (diff) | |
download | mako-00cd87d40000f552f131f77e29397325b4051a14.tar.gz |
Fix for Windows
Change-Id: I1f332e81cc8a67391c3a9133e37c9a8bb1362745
-rw-r--r-- | mako/testing/_config.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mako/testing/_config.py b/mako/testing/_config.py index b469709..4ee3d0a 100644 --- a/mako/testing/_config.py +++ b/mako/testing/_config.py @@ -50,7 +50,7 @@ def _parse_cfg_file(filespec: Union[Path, str]): except FileNotFoundError as e: raise MissingConfig(f"No config file found at {filespec}") from e else: - with open(filepath) as f: + with open(filepath, encoding="utf-8") as f: cfg.read_file(f) return cfg |