Skip to content

Commit

Permalink
flush before sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
markushx committed Feb 17, 2015
1 parent fac70db commit 87a54d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/python/count.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
# Simple example script that counts to 10 at ~2Hz, then stops.
for count in range(0, 10):
print count + 1
sleep(0.5)
stdout.flush() # Remember to flush
sleep(0.5)

0 comments on commit 87a54d3

Please sign in to comment.