mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 23:07:18 +03:00
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:
parent
db61c5aa1f
commit
38fab65a09
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user