Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Lib/curses/wrapper.py

    r2 r391  
    1818    """
    1919
    20     res = None
    2120    try:
    2221        # Initialize curses
    23         stdscr=curses.initscr()
     22        stdscr = curses.initscr()
    2423
    2524        # Turn off echoing of keys, and enter cbreak mode,
     
    4544    finally:
    4645        # 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.