mercurial/crecord.py
branchstable
changeset 27530 ba30ef5bba95
parent 27529 940cedaee988
child 27532 1be02894dd6f
equal deleted inserted replaced
27529:940cedaee988 27530:ba30ef5bba95
    41     # I have no idea if wcurses works with crecord...
    41     # I have no idea if wcurses works with crecord...
    42     try:
    42     try:
    43         import wcurses as curses
    43         import wcurses as curses
    44         curses.error
    44         curses.error
    45     except ImportError:
    45     except ImportError:
    46         # wcurses is not shipped on Windows by default
    46         # wcurses is not shipped on Windows by default, or python is not
    47         pass
    47         # compiled with curses
       
    48         curses = False
    48 
    49 
    49 try:
    50 try:
    50     curses
    51     curses
    51 except NameError:
    52 except NameError:
    52     if os.name != 'nt':  # Temporary hack to get running on Windows again
    53     if os.name != 'nt':  # Temporary hack to get running on Windows again