(msg, flush=True, ignore_errors=False)
| 13 | NaN = None |
| 14 | |
| 15 | def Log(msg, flush=True, ignore_errors=False): |
| 16 | if ignore_errors: |
| 17 | print (msg.encode(sys.stdout.encoding, errors='replace')) |
| 18 | else: |
| 19 | print (msg) |
| 20 | |
| 21 | if EDITOR_MODE: |
| 22 | sys.stderr.flush() |
| 23 | sys.stdout.flush() |
| 24 | |
| 25 | |
| 26 | def LogErr(msg, flush=False): |
no outgoing calls