| Conditions | 3 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | # Licensed to the StackStorm, Inc ('StackStorm') under one or more |
||
| 23 | def run(self, count=100, sleep_delay=0.5): |
||
| 24 | for i in range(0, count): |
||
| 25 | if i % 2 == 0: |
||
| 26 | text = 'stderr' |
||
| 27 | stream = sys.stderr |
||
| 28 | else: |
||
| 29 | text = 'stdout' |
||
| 30 | stream = sys.stdout |
||
| 31 | |||
| 32 | stream.write('%s -> Line: %s\n' % (text, (i + 1))) |
||
| 33 | stream.flush() |
||
| 34 | time.sleep(sleep_delay) |
||
| 35 |