comparison mercurial/crecord.py @ 45025:47a07bbf400a

crecord: stop trying to import wcurses The original import of crecord in 2008 already said "I have no idea if wcurses works with crecord...". The last reference to a Python package called wcurses is https://web.archive.org/web/20101025073658/http://adamv.com/dev/python/curses/. However, the Python package from there is called "curses" and not "wcurses". I didn’t find any evidence that it ever worked.
author Manuel Jacob <me@manueljacob.de>
date Sat, 27 Jun 2020 20:19:41 +0200
parents d2227d4c9e6b
children a65c60f3280e
comparison
equal deleted inserted replaced
45024:36178b5c9aeb 45025:47a07bbf400a
61 import curses 61 import curses
62 import curses.ascii 62 import curses.ascii
63 63
64 curses.error 64 curses.error
65 except (ImportError, AttributeError): 65 except (ImportError, AttributeError):
66 # I have no idea if wcurses works with crecord... 66 curses = False
67 try:
68 import wcurses as curses
69
70 curses.error
71 except (ImportError, AttributeError):
72 # wcurses is not shipped on Windows by default, or python is not
73 # compiled with curses
74 curses = False
75 67
76 68
77 class fallbackerror(error.Abort): 69 class fallbackerror(error.Abort):
78 """Error that indicates the client should try to fallback to text mode.""" 70 """Error that indicates the client should try to fallback to text mode."""
79 71