We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b353ddb commit f3d3cedCopy full SHA for f3d3ced
util/chplenv/utils.py
@@ -48,18 +48,16 @@ def error(msg, exception=Exception):
48
flush_warnings()
49
raise exception(msg)
50
else:
51
- out = ['\nError: ', msg, '\n']
+ out = '\nError: {}\n'.format(msg)
52
if ignore_errors:
53
- sys.stderr.write(''.join(out))
+ sys.stderr.write(out)
54
55
# flush warnings, print error, and exit
56
# technically, there is no need to flush warnings here, but might as well
57
58
59
sys.exit(1)
60
61
-
62
63
def memoize(func):
64
"""Function memoizing decorator"""
65
cache = func.cache = {}
0 commit comments