[Python-checkins] CVS: python/dist/src/Lib cmd.py,1.26,1.26.16.1

Michael Hudson mwh@users.sourceforge.net
Mon, 25 Mar 2002 04:34:17 -0800


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv7342

Modified Files:
      Tag: release22-maint
	cmd.py 
Log Message:
backport nascheme's checkin of
    revision 1.27 of cmd.py

Flush stdout before reading next command.  Closes SF bug 526357.


Index: cmd.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/cmd.py,v
retrieving revision 1.26
retrieving revision 1.26.16.1
diff -C2 -d -r1.26 -r1.26.16.1
*** cmd.py	9 Aug 2001 21:40:30 -0000	1.26
--- cmd.py	25 Mar 2002 12:34:15 -0000	1.26.16.1
***************
*** 95,98 ****
--- 95,99 ----
                  else:
                      sys.stdout.write(self.prompt)
+                     sys.stdout.flush()
                      line = sys.stdin.readline()
                      if not len(line):