[Python-checkins] CVS: python/dist/src/Lib/curses wrapper.py,1.3,1.4
Jeremy Hylton
python-dev@python.org
Fri, 7 Jul 2000 14:02:24 -0700
Update of /cvsroot/python/python/dist/src/Lib/curses
In directory slayer.i.sourceforge.net:/tmp/cvs-serv31811/curses
Modified Files:
wrapper.py
Log Message:
fix inconsistent use of tabs and spaces
convert semicolons to newlines
Index: wrapper.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/curses/wrapper.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** wrapper.py 2000年06月27日 00:50:40 1.3
--- wrapper.py 2000年07月07日 21:02:22 1.4
***************
*** 21,29 ****
try:
# Initialize curses
! stdscr=curses.initscr()
# Turn off echoing of keys, and enter cbreak mode,
# where no buffering is performed on keyboard input
! curses.noecho() ; curses.cbreak()
# In keypad mode, escape sequences for special keys
--- 21,30 ----
try:
# Initialize curses
! stdscr=curses.initscr()
# Turn off echoing of keys, and enter cbreak mode,
# where no buffering is performed on keyboard input
! curses.noecho()
! curses.cbreak()
# In keypad mode, escape sequences for special keys
***************
*** 36,42 ****
# In the event of an error, restore the terminal
# to a sane state.
! stdscr.keypad(0)
! curses.echo() ; curses.nocbreak()
! curses.endwin()
# Pass the exception upwards
--- 37,44 ----
# In the event of an error, restore the terminal
# to a sane state.
! stdscr.keypad(0)
! curses.echo()
! curses.nocbreak()
! curses.endwin()
# Pass the exception upwards
***************
*** 45,51 ****
else:
# Set everything back to normal
! stdscr.keypad(0)
! curses.echo() ; curses.nocbreak()
! curses.endwin() # Terminate curses
return res
--- 47,54 ----
else:
# Set everything back to normal
! stdscr.keypad(0)
! curses.echo()
! curses.nocbreak()
! curses.endwin() # Terminate curses
return res