blob: 4abe887f1f6cfc005f7c04a1177a8041dee6e051 [file] [log] [blame]
Neels Hofmeyr3531a192017-03-28 14:30:28 +02001#!/usr/bin/env python3
2
3import sys
4import atexit
5import time
6
7
8sys.stdout.write('foo stdout\n')
9sys.stderr.write('foo stderr\n')
10
11print(repr(sys.argv))
12sys.stdout.flush()
13sys.stderr.flush()
14
15def x():
16 sys.stdout.write('Exiting (stdout)\n')
17 sys.stdout.flush()
18 sys.stderr.write('Exiting (stderr)\n')
19 sys.stderr.flush()
20atexit.register(x)
21
22while True:
23 time.sleep(1)
24
25# vim: expandtab tabstop=4 shiftwidth=4