Skip to content

Commit

Permalink
encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
marcin-usielski committed Feb 6, 2024
1 parent bfff213 commit b41dc5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion moler/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def read_configfile(path):
:return: configuration file content as string
"""

with open(path, "r") as config_file:
with open(path, "r", encoding="utf-8") as config_file:
content = config_file.read()
yield content

Expand Down
2 changes: 1 addition & 1 deletion moler/config/loggers.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def _get_moler_version_cloned_from_git_repository(setup_py_path):
version = "UNKNOWN"

if os.path.isfile(setup_py_path):
with open(setup_py_path, "r") as f:
with open(setup_py_path, "r", encoding="utf-8") as f:
for line in f:
search_version = re.search(
r"version\s*=\s*\'(?P<VERSION>\d+\.\d+\.\d+)", line
Expand Down

0 comments on commit b41dc5e

Please sign in to comment.