##// END OF EJS Templates
Provide a version independent way to use the set datatype.
Eric Hopper -
r4647:7c80e3e6 default
parent child Browse files
Show More
@@ -17,6 +17,12 b' import cStringIO, errno, getpass, popen2'
17 import os, threading, time, calendar, ConfigParser, locale, glob
17 import os, threading, time, calendar, ConfigParser, locale, glob
18
18
19 try:
19 try:
20 set = set
21 frozenset = frozenset
22 except NameError:
23 from sets import Set as set, ImmutableSet as frozenset
24
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
General Comments 0
You need to be logged in to leave comments. Login now