mirror of
https://github.com/clearml/clearml
synced 2025-01-31 00:56:57 +00:00
PEP8
This commit is contained in:
parent
081f4e5a56
commit
8968753467
@ -364,8 +364,7 @@ def debug_print(*args, **kwargs):
|
|||||||
tic = globals().get('tic', time.time())
|
tic = globals().get('tic', time.time())
|
||||||
stdout_print(
|
stdout_print(
|
||||||
"\033[1;33m[pid={}, t={:.04f}] ".format(os.getpid(), time.time()-tic)
|
"\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"
|
+ str(args[0] if len(args) == 1 else ("" if not args else args)) + "\033[0m", **kwargs
|
||||||
, **kwargs
|
|
||||||
)
|
)
|
||||||
tic = time.time()
|
tic = time.time()
|
||||||
|
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
import atexit
|
|
||||||
import copy
|
import copy
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
import signal
|
|
||||||
import sys
|
import sys
|
||||||
import threading
|
import threading
|
||||||
import time
|
import time
|
||||||
|
Loading…
Reference in New Issue
Block a user