equal
deleted
inserted
replaced
13 """ |
13 """ |
14 |
14 |
15 from i18n import _ |
15 from i18n import _ |
16 import cStringIO, errno, getpass, popen2, re, shutil, sys, tempfile |
16 import cStringIO, errno, getpass, popen2, re, shutil, sys, tempfile |
17 import os, threading, time, calendar, ConfigParser, locale, glob |
17 import os, threading, time, calendar, ConfigParser, locale, glob |
|
18 |
|
19 try: |
|
20 set = set |
|
21 frozenset = frozenset |
|
22 except NameError: |
|
23 from sets import Set as set, ImmutableSet as frozenset |
18 |
24 |
19 try: |
25 try: |
20 _encoding = os.environ.get("HGENCODING") |
26 _encoding = os.environ.get("HGENCODING") |
21 if sys.platform == 'darwin' and not _encoding: |
27 if sys.platform == 'darwin' and not _encoding: |
22 # On darwin, getpreferredencoding ignores the locale environment and |
28 # On darwin, getpreferredencoding ignores the locale environment and |