crecord: ensure that curses is False if not imported
This provides no functional change but makes the next two patches easier to
review.
--- a/mercurial/crecord.py Tue Dec 15 15:56:10 2015 -0800
+++ b/mercurial/crecord.py Tue Dec 15 16:00:06 2015 -0800
@@ -43,8 +43,9 @@
import wcurses as curses
curses.error
except ImportError:
- # wcurses is not shipped on Windows by default
- pass
+ # wcurses is not shipped on Windows by default, or python is not
+ # compiled with curses
+ curses = False
try:
curses