From e6a48fa15464afb2325e042bd5c31b12d23afd43 Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Wed, 23 Oct 2019 16:35:31 -0700 Subject: [PATCH] drop debug print, and flush the output as it might take a while to fill the default buffer, and we'd lose data in case of a crash.. --- bin/poll.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/poll.py b/bin/poll.py index 770faf9..31ecfb5 100644 --- a/bin/poll.py +++ b/bin/poll.py @@ -55,9 +55,9 @@ if __name__ == '__main__': 'timezone_utcTime', 'timezone_utcOffset' ] print_data('z', *(tzinfo[x] for x in tzfields)) + sys.stdout.flush() s += interval delay = s - e - print `delay` if delay <= 0: s = time.time() continue