Provides a no-op tqdm context manager for redirecting log messages.
| 68 | |
| 69 | |
| 70 | class FakeTqdmLoggingRedirect: |
| 71 | """Provides a no-op tqdm context manager for redirecting log messages.""" |
| 72 | |
| 73 | def __init__(self, **kwargs): |
| 74 | """No-op.""" |
| 75 | |
| 76 | def __enter__(self): |
| 77 | """No-op.""" |
| 78 | |
| 79 | def __exit__(self, type, value, traceback): |
| 80 | """No-op.""" |
| 81 | |
| 82 | |
| 83 | # Try to import tqdm and the logging redirect, otherwise provide fake implementations.. |