Spaces:
Runtime error
Runtime error
Update opp.py
Browse files
opp.py
CHANGED
@@ -164,7 +164,7 @@ def log(x = '', y = None): # debug only
|
|
164 |
return x
|
165 |
|
166 |
global prev_time
|
167 |
-
print(f"<\033[
|
168 |
if x:
|
169 |
print(time.strftime('%M:%S '), x, round(time.time() - prev_time, 3), '\033[0m')
|
170 |
if y:
|
|
|
164 |
return x
|
165 |
|
166 |
global prev_time
|
167 |
+
print(f"<\033[97m{sys._getframe().f_back.f_code.co_name}\033[96m>:")
|
168 |
if x:
|
169 |
print(time.strftime('%M:%S '), x, round(time.time() - prev_time, 3), '\033[0m')
|
170 |
if y:
|