diff options
author | Mattias Andrée <maandree@kth.se> | 2016-11-25 14:31:04 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-11-25 14:31:04 +0100 |
commit | b12b82b7bc0f1e63d32dcf1d20991ac68a31be9a (patch) | |
tree | 5c395b69ee3a90b395f98684b99ecd78ea232e5c /src | |
parent | Fix icc parsing (diff) | |
download | blueshift-b12b82b7bc0f1e63d32dcf1d20991ac68a31be9a.tar.gz blueshift-b12b82b7bc0f1e63d32dcf1d20991ac68a31be9a.tar.bz2 blueshift-b12b82b7bc0f1e63d32dcf1d20991ac68a31be9a.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src')
-rwxr-xr-x | src/__main__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/__main__.py b/src/__main__.py index e0f718b..b961629 100755 --- a/src/__main__.py +++ b/src/__main__.py @@ -305,7 +305,7 @@ def signal_SIGUSR1(signum, frame): # Decode it, assume it is in UTF-8, and append # an line ending in case the the last line is # not empty, which would give us an exception. - code = code.decode('utf8', 'error') + '\n' + code = code.decode('utf8', 'strict') + '\n' # Compile the script, code = compile(code, config_file, 'exec') # and run it, with it have the same @@ -719,7 +719,7 @@ else: # Decode configurion script file and add a line break # at the end to ensure that the last line is empty. # If it is not, we will get errors. - code = code.decode('utf-8', 'error') + '\n' + code = code.decode('utf-8', 'strict') + '\n' # Compile the configuration script, code = compile(code, config_file, 'exec') # and run it, with it have the same |