small polishing

This commit is contained in:
Philip Eisenlohr 2015-09-29 22:25:57 +00:00
parent 8d7fab56f7
commit b2243ae3c1
1 changed files with 3 additions and 2 deletions

View File

@ -68,12 +68,13 @@ class ASCIItable():
# ------------------------------------------------------------------
def croak(self,
what, newline = True):
what,
newline = True):
sys.stderr.write(('\n'.join(map(str,what)) if not hasattr(what, "strip")
and hasattr(what, "__getitem__")
or hasattr(what, "__iter__") else str(what))
+('\n' if newline else '')),
+('\n' if newline else ''))
# ------------------------------------------------------------------
def report_name(self, scriptName, fileName):