crecord: ensure that curses is False if not imported

This provides no functional change but makes the next two patches easier to
review.
This commit is contained in:
Sean Farley 2015-12-15 16:00:06 -08:00
parent db61c5aa1f
commit 38fab65a09

View File

@ -43,8 +43,9 @@ except ImportError:
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