(debug: bool, *args: str)
| 3 | |
| 4 | |
| 5 | def debug_print(debug: bool, *args: str) -> None: |
| 6 | if not debug: |
| 7 | return |
| 8 | timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S") |
| 9 | message = " ".join(map(str, args)) |
| 10 | print(f"\033[97m[\033[90m{timestamp}\033[97m]\033[90m {message}\033[0m") |
| 11 | |
| 12 | |
| 13 | def merge_fields(target, source): |
no outgoing calls
no test coverage detected
searching dependent graphs…