Skip to content

Commit

Permalink
fix(ceg.py): open files in utf-8 encofing for --patch/--post
Browse files Browse the repository at this point in the history
  • Loading branch information
Justaus3r committed Dec 16, 2023
1 parent f7f0bc5 commit f5a875e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 247 deletions.
2 changes: 1 addition & 1 deletion ceg/ceg.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ def post(self, **kwargs) -> Optional[str]:
self.logger.warning(f"{file} will be ignored!")
files_to_ignore.append(file)
continue
with open(file, "r") as r_obj:
with open(file, "r", encoding="utf-8") as r_obj:
file_content: str = r_obj.read()
file_to_content_map.update({file_basename: {"content": file_content}})
if is_patch and new_filenames.get(file_basename): # type: ignore
Expand Down
209 changes: 0 additions & 209 deletions ceg/misc.py

This file was deleted.

37 changes: 0 additions & 37 deletions pyproject.toml

This file was deleted.

0 comments on commit f5a875e

Please sign in to comment.