377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
|
if conf.windows:
method = "[%s]" % method
else:
method = r"[{}[{}][0m".format(self.colors.get(method.split("_")[0], "47m"), method)
# output
print(
method + " " + " " . join(
format_exc(a) if isinstance(a, Exception) else str(a) for a in args
),
file=sys.stderr
)
# Colors
colors = {
"ERR": "31m", # red ERROR
|
|
|
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
|
if conf.windows:
method = "[%s]" % method
else:
method = r"[{}[{}][0m".format(self.colors.get(method.split("_")[0], "47m"), method)
# output
print(
method + " " + " " . join(
format_exc() if isinstance(a, Exception) else str(a) for a in args
),
file=sys.stderr
)
# Colors
colors = {
"ERR": "31m", # red ERROR
|