Changeset 391 for python/trunk/Lib/curses/wrapper.py
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Lib/curses/wrapper.py
r2 r391 18 18 """ 19 19 20 res = None21 20 try: 22 21 # Initialize curses 23 stdscr =curses.initscr()22 stdscr = curses.initscr() 24 23 25 24 # Turn off echoing of keys, and enter cbreak mode, … … 45 44 finally: 46 45 # Set everything back to normal 47 stdscr.keypad(0) 48 curses.echo() 49 curses.nocbreak() 50 curses.endwin() 46 if 'stdscr' in locals(): 47 stdscr.keypad(0) 48 curses.echo() 49 curses.nocbreak() 50 curses.endwin()
Note:
See TracChangeset
for help on using the changeset viewer.