Mercurial > hg
changeset 27530:ba30ef5bba95 stable
crecord: ensure that curses is False if not imported
This provides no functional change but makes the next two patches easier to
review.
author | Sean Farley <sean@farley.io> |
---|---|
date | Tue, 15 Dec 2015 16:00:06 -0800 |
parents | 940cedaee988 |
children | 84d686cb62c4 |
files | mercurial/crecord.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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