Skip to content

Commit

Permalink
fix: PyPSA#162 enforce utf8 config encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
lkstrp committed Jul 22, 2024
1 parent 4355783 commit e01d37f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions powerplantmatching/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ def get_config(filename=None, **overrides):
else:
custom_config = package_config["custom_config"]

with open(base_config) as f:
with open(base_config, encoding="utf8") as f:
config = yaml.load(f, Loader=yaml.FullLoader)
if exists(custom_config):
with open(custom_config) as f:
with open(custom_config, encoding="utf8") as f:
config.update(yaml.load(f, Loader=yaml.FullLoader))
config.update(overrides)

Expand Down

0 comments on commit e01d37f

Please sign in to comment.