# HG changeset patch # User Sean Farley # Date 1450224006 28800 # Node ID ba30ef5bba95307ed5b1ca2a9ae1ff7b86220178 # Parent 940cedaee9886036d9335cf7fe2c9d33bfda5db8 crecord: ensure that curses is False if not imported This provides no functional change but makes the next two patches easier to review. diff -r 940cedaee988 -r ba30ef5bba95 mercurial/crecord.py --- 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