mirror of
https://github.com/kennethreitz-archive/pyinstaller.git
synced 2026-06-05 23:50:17 +00:00
b98a53df92
git-svn-id: http://svn.pyinstaller.org/trunk@2 8dd32b29-ccff-0310-8a9a-9233e24343b1
15 lines
335 B
Python
15 lines
335 B
Python
print "test4 - unbufferred"
|
|
print "type: 123456<enter>"
|
|
print "should see: 12345"
|
|
print "type: <enter>"
|
|
print "if unbuffered should see: 6"
|
|
print "if NOT unbuffered, should see nothing"
|
|
print "Q to quit"
|
|
import sys
|
|
while 1:
|
|
data = sys.stdin.read(5)
|
|
sys.stdout.write(data)
|
|
if 'Q' in data:
|
|
break
|
|
print "test4 - done"
|