diff --git a/clearml/debugging/trace.py b/clearml/debugging/trace.py index c5f46e2c..fb4fa89b 100644 --- a/clearml/debugging/trace.py +++ b/clearml/debugging/trace.py @@ -364,8 +364,7 @@ def debug_print(*args, **kwargs): tic = globals().get('tic', time.time()) stdout_print( "\033[1;33m[pid={}, t={:.04f}] ".format(os.getpid(), time.time()-tic) - + str(args[0] if len(args) == 1 else ("" if not args else args)) + "\033[0m" - , **kwargs + + str(args[0] if len(args) == 1 else ("" if not args else args)) + "\033[0m", **kwargs ) tic = time.time() diff --git a/clearml/task.py b/clearml/task.py index 475793c8..e81dbc3f 100644 --- a/clearml/task.py +++ b/clearml/task.py @@ -1,9 +1,7 @@ -import atexit import copy import json import os import shutil -import signal import sys import threading import time