diff options
author | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2002-03-23 20:43:59 (GMT) |
---|---|---|
committer | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2002-03-23 20:43:59 (GMT) |
commit | d03c342b9930f14302ee10c0f99468b37d7a7f91 (patch) | |
tree | 2c273b90edacea811041ecdfa68cbee51ae9f51b /Lib/cmd.py | |
parent | 3a204a7e481883d277f7c093fabf9632746571d7 (diff) | |
download | cpython-d03c342b9930f14302ee10c0f99468b37d7a7f91.zip cpython-d03c342b9930f14302ee10c0f99468b37d7a7f91.tar.gz cpython-d03c342b9930f14302ee10c0f99468b37d7a7f91.tar.bz2 |
Flush stdout before reading next command. Closes SF bug 526357.
Diffstat (limited to 'Lib/cmd.py')
-rw-r--r-- | Lib/cmd.py | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -94,6 +94,7 @@ class Cmd: line = 'EOF' else: sys.stdout.write(self.prompt) + sys.stdout.flush() line = sys.stdin.readline() if not len(line): line = 'EOF' |