Clean up messages.

This commit is contained in:
mguthaus
2018-01-31 11:54:20 -08:00
parent 4aee700331
commit 4273a3717d
2 changed files with 6 additions and 7 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ def check(check,str):
print("ERROR: file {0}: line {1}: {2}".format(os.path.basename(filename),line_number,str))
assert 0
def error(str,return_value):
def error(str,return_value=0):
(frame, filename, line_number, function_name, lines,
index) = inspect.getouterframes(inspect.currentframe())[1]
print("ERROR: file {0}: line {1}: {2}".format(os.path.basename(filename),line_number,str))