(handle, interval, write_func)
| 67 | import time |
| 68 | |
| 69 | def tail_file(handle, interval, write_func): |
| 70 | while not handle.closed: |
| 71 | try: |
| 72 | line = readline(handle) |
| 73 | except NoNewData: |
| 74 | time.sleep(interval) |
| 75 | else: |
| 76 | write_func(line) |
| 77 | |
| 78 | |
| 79 | print("Example 3") |
nothing calls this directly
no test coverage detected