Skip to content

Commit f3d3ced

Browse files
committed
apply feedback
Signed-off-by: Jade Abraham <[email protected]>
1 parent b353ddb commit f3d3ced

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

util/chplenv/utils.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,16 @@ def error(msg, exception=Exception):
4848
flush_warnings()
4949
raise exception(msg)
5050
else:
51-
out = ['\nError: ', msg, '\n']
51+
out = '\nError: {}\n'.format(msg)
5252
if ignore_errors:
53-
sys.stderr.write(''.join(out))
53+
sys.stderr.write(out)
5454
else:
5555
# flush warnings, print error, and exit
5656
# technically, there is no need to flush warnings here, but might as well
5757
flush_warnings()
58-
sys.stderr.write(''.join(out))
58+
sys.stderr.write(out)
5959
sys.exit(1)
6060

61-
62-
6361
def memoize(func):
6462
"""Function memoizing decorator"""
6563
cache = func.cache = {}

0 commit comments

Comments
 (0)