Skip to content

Commit

Permalink
added unicode escape to config strings
Browse files Browse the repository at this point in the history
  • Loading branch information
SilenZcience committed Feb 29, 2024
1 parent d806b7b commit 720f686
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cat_win/persistence/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ def save_config(self) -> None:
print('\nAborting due to End-of-File character...', file=sys.stderr)
return

value = value.encode().decode('unicode_escape')
self.config_parser['CONSTS'][keyword] = f'"{value}"'
try:
with open(self.config_file, 'w', encoding='utf-8') as conf:
Expand Down

0 comments on commit 720f686

Please sign in to comment.