]> jfr.im git - z_archive/twitter.git/commitdiff
Flush after performing an action in the refresh case.
authorMike Verdone <redacted>
Sun, 29 Jan 2012 02:11:58 +0000 (03:11 +0100)
committerMike Verdone <redacted>
Sun, 29 Jan 2012 02:11:58 +0000 (03:11 +0100)
twitter/cmdline.py

index 8353df3473eff11d79af3e76c624cb8bb76d04a8..775df731b977f22eaaa7cfa4a5beb1ff3e044443 100644 (file)
@@ -352,6 +352,7 @@ class Action(object):
             if (options['refresh'] and isinstance(action, StatusAction)):
                 while True:
                     doAction()
+                    sys.stdout.flush()
                     time.sleep(options['refresh_rate'])
             else:
                 doAction()