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:
5 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

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

    r2 r391  
    66   import curses
    77   from curses import textpad
    8    curses.initwin()
     8   curses.initscr()
    99   ...
    1010
    1111"""
    1212
    13 __revision__ = "$Id: __init__.py 61064 2008-02-25 16:29:58Z andrew.kuchling $"
     13__revision__ = "$Id$"
    1414
    1515from _curses import *
  • python/trunk/Lib/curses/has_key.py

    r2 r391  
    183183        _curses.initscr()
    184184        for key in _capability_names.keys():
    185             system = _curses.has_key(key)
     185            system = key in _curses
    186186            python = has_key(key)
    187187            if system != python:
  • python/trunk/Lib/curses/panel.py

    r2 r391  
    44"""
    55
    6 __revision__ = "$Id: panel.py 36560 2004-07-18 06:16:08Z tim_one $"
     6__revision__ = "$Id$"
    77
    88from _curses_panel import *
  • 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.