Skip to content

Commit

Permalink
switch to backslashreplace for so generated txt can be read back in t…
Browse files Browse the repository at this point in the history
…o GAM
  • Loading branch information
jay0lee committed Jan 2, 2020
1 parent 22d8411 commit 75eec07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gam.py
Original file line number Diff line number Diff line change
Expand Up @@ -14742,6 +14742,6 @@ def ProcessGAMCommand(args):
if sys.version_info[0] < 3 or sys.version_info[1] < 5:
controlflow.system_error_exit(5, 'GAM requires Python 3.5 or newer. You are running %s.%s.%s. Please upgrade your Python version or use one of the binary GAM downloads.' % sys.version_info[:3])
elif sys.version_info[1] >= 7:
sys.stdout.reconfigure(encoding=UTF8, errors='namereplace')
sys.stdin.reconfigure(encoding=UTF8, errors='namereplace')
sys.stdout.reconfigure(encoding=UTF8, errors='backslashreplace')
sys.stdin.reconfigure(encoding=UTF8, errors='backslashreplace')
sys.exit(ProcessGAMCommand(sys.argv))

0 comments on commit 75eec07

Please sign in to comment.