Permalink
Browse files

Flush() tern debug output.

  • Loading branch information...
sjl committed Apr 1, 2013
1 parent 0a32277 commit 9a8f66b4126c866c2b48c6ee80b27a71d2c8b82a
Showing with 5 additions and 0 deletions.
  1. +5 −0 apps/subtitles/tern.py
View
@@ -920,9 +920,14 @@ def main():
if options.sleep:
ms = int(options.sleep)
+
print 'Sleeping for %dms...' % ms
+ sys.stdout.flush()
+
time.sleep(ms / 1000.0)
+
print 'Waking up...'
+ sys.stdout.flush()
if options.command == 'count':
count()

0 comments on commit 9a8f66b

Please sign in to comment.