diff --git a/copier/template.py b/copier/template.py index 06681c307..dacd7a318 100644 --- a/copier/template.py +++ b/copier/template.py @@ -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: