Skip to content

Commit

Permalink
fix: don't fail in systems with windows 1252 encoding (probably)
Browse files Browse the repository at this point in the history
Fixes #1186
  • Loading branch information
yajo authored Jan 16, 2024
1 parent 1395e2e commit 7ec887e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion copier/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class _Loader(yaml.FullLoader):
loader_class=_Loader, base_dir=conf_path.parent
)

with open(conf_path) as f:
with conf_path.open("rb") as f:
try:
flattened_result = lflatten(yaml.load_all(f, Loader=_Loader))
except yaml.parser.ParserError as e:
Expand Down

0 comments on commit 7ec887e

Please sign in to comment.