Mercurial > hg
comparison mercurial/crecord.py @ 24909:d71492ca2fdd
crecord: fix mixed imports warning
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Thu, 09 Apr 2015 23:47:07 -0400 |
parents | a5e3634ba024 |
children | c1f5ef76d1c2 |
comparison
equal
deleted
inserted
replaced
24908:30b910fea244 | 24909:d71492ca2fdd |
---|---|
18 # locale encoding correctly. --immerrr | 18 # locale encoding correctly. --immerrr |
19 locale.setlocale(locale.LC_ALL, '') | 19 locale.setlocale(locale.LC_ALL, '') |
20 | 20 |
21 # os.name is one of: 'posix', 'nt', 'dos', 'os2', 'mac', or 'ce' | 21 # os.name is one of: 'posix', 'nt', 'dos', 'os2', 'mac', or 'ce' |
22 if os.name == 'posix': | 22 if os.name == 'posix': |
23 import curses, fcntl, termios | 23 import curses |
24 import fcntl, termios | |
24 else: | 25 else: |
25 # I have no idea if wcurses works with crecord... | 26 # I have no idea if wcurses works with crecord... |
26 try: | 27 try: |
27 import wcurses as curses | 28 import wcurses as curses |
28 except ImportError: | 29 except ImportError: |