Mercurial > hg
comparison mercurial/crecord.py @ 24314:348492ba632a
crecord: more import style
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 16 Mar 2015 12:58:06 -0500 |
parents | ed535f2c15c3 |
children | 7d5f935bd705 |
comparison
equal
deleted
inserted
replaced
24313:ed535f2c15c3 | 24314:348492ba632a |
---|---|
10 | 10 |
11 from i18n import _ | 11 from i18n import _ |
12 import patch as patchmod | 12 import patch as patchmod |
13 import util, encoding | 13 import util, encoding |
14 | 14 |
15 import os | 15 import os, re, sys, fcntl, struct, termios, signal, tempfile, locale, cStringIO |
16 import re | 16 |
17 import sys | |
18 import fcntl | |
19 import struct | |
20 import termios | |
21 import signal | |
22 import tempfile | |
23 import locale | |
24 import cStringIO | |
25 # This is required for ncurses to display non-ASCII characters in default user | 17 # This is required for ncurses to display non-ASCII characters in default user |
26 # locale encoding correctly. --immerrr | 18 # locale encoding correctly. --immerrr |
27 locale.setlocale(locale.LC_ALL, '') | 19 locale.setlocale(locale.LC_ALL, '') |
28 # os.name is one of: 'posix', 'nt', 'dos', 'os2', 'mac', or 'ce' | 20 # os.name is one of: 'posix', 'nt', 'dos', 'os2', 'mac', or 'ce' |
29 if os.name == 'posix': | 21 if os.name == 'posix': |