##// END OF EJS Templates
crecord: use try/except for import of curses...
Sean Farley -
r27528:7cc65461 stable
parent child Browse files
Show More
@@ -30,15 +30,18 b' from . import ('
30 30 # locale encoding correctly. --immerrr
31 31 locale.setlocale(locale.LC_ALL, '')
32 32
33 # os.name is one of: 'posix', 'nt', 'dos', 'os2', 'mac', or 'ce'
34 if os.name == 'posix':
33 try:
35 34 import curses
36 35 import fcntl
37 36 import termios
38 else:
37 curses.error
38 fcntl.ioctl
39 termios.TIOCGWINSZ
40 except ImportError:
39 41 # I have no idea if wcurses works with crecord...
40 42 try:
41 43 import wcurses as curses
44 curses.error
42 45 except ImportError:
43 46 # wcurses is not shipped on Windows by default
44 47 pass
General Comments 0
You need to be logged in to leave comments. Login now