util.report without mandatory arguments
reporting can now omit either "who" or "what". cleaner output in case of no "who"...
This commit is contained in:
parent
3305cae220
commit
bb5070b52f
|
@ -49,9 +49,10 @@ def croak(what, newline = True):
|
|||
sys.stderr.flush()
|
||||
|
||||
# -----------------------------
|
||||
def report(who,what):
|
||||
def report(who = None,
|
||||
what = None):
|
||||
"""reports script and file name"""
|
||||
croak( (emph(who) if who else '') + (': '+what if what else '') )
|
||||
croak( (emph(who)+': ' if who else '') + (what if what else '') )
|
||||
|
||||
|
||||
# -----------------------------
|
||||
|
|
Loading…
Reference in New Issue