mercurial/util.py
changeset 8150 bbc24c0753a0
parent 8118 35f7fda52c92
child 8151 127281884959
equal deleted inserted replaced
8149:ddbee2d0d634 8150:bbc24c0753a0
    16 import cStringIO, errno, re, shutil, sys, tempfile, traceback, error
    16 import cStringIO, errno, re, shutil, sys, tempfile, traceback, error
    17 import os, stat, threading, time, calendar, ConfigParser, glob, osutil
    17 import os, stat, threading, time, calendar, ConfigParser, glob, osutil
    18 import imp
    18 import imp
    19 
    19 
    20 # Python compatibility
    20 # Python compatibility
    21 
       
    22 try:
       
    23     set = set
       
    24     frozenset = frozenset
       
    25 except NameError:
       
    26     from sets import Set as set, ImmutableSet as frozenset
       
    27 
    21 
    28 _md5 = None
    22 _md5 = None
    29 def md5(s):
    23 def md5(s):
    30     global _md5
    24     global _md5
    31     if _md5 is None:
    25     if _md5 is None: