(*s, condition=True, pad=False)
| 9 | |
| 10 | |
| 11 | def print_message(*s, condition=True, pad=False): |
| 12 | s = ' '.join([str(x) for x in s]) |
| 13 | msg = "[{}] {}".format(datetime.datetime.now().strftime("%b %d, %H:%M:%S"), s) |
| 14 | |
| 15 | if condition: |
| 16 | msg = msg if not pad else f'\n{msg}\n' |
| 17 | print(msg, flush=True) |
| 18 | |
| 19 | |
| 20 | return msg |
| 21 | |
| 22 | |
| 23 | def timestamp(daydir=False): |
no outgoing calls
no test coverage detected