This commit is contained in:
allegroai 2023-12-17 23:36:13 +02:00
parent 081f4e5a56
commit 8968753467
2 changed files with 1 additions and 4 deletions

View File

@ -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()

View File

@ -1,9 +1,7 @@
import atexit
import copy
import json
import os
import shutil
import signal
import sys
import threading
import time