equal
deleted
inserted
replaced
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: |