changeset 45007: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 36178b5c9aeb
children e1ea913da2ed
files mercurial/crecord.py
diffstat 1 files changed, 1 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/crecord.py	Thu Jun 18 10:48:27 2020 -0700
+++ b/mercurial/crecord.py	Sat Jun 27 20:19:41 2020 +0200
@@ -63,15 +63,7 @@
 
     curses.error
 except (ImportError, AttributeError):
-    # I have no idea if wcurses works with crecord...
-    try:
-        import wcurses as curses
-
-        curses.error
-    except (ImportError, AttributeError):
-        # wcurses is not shipped on Windows by default, or python is not
-        # compiled with curses
-        curses = False
+    curses = False
 
 
 class fallbackerror(error.Abort):