comparison MoinMoin/util/thread_monitor.py @ 2595:5e7b45489430

moved python2.3/2.4 compatibility code to MoinMoin.support.python_compatibility (thanks to Heinrich Wendel)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 03 Aug 2007 13:30:42 +0200
parents 01f05e74aa9c
children 500f68d3e2fd
comparison
equal deleted inserted replaced
2594:dae34d586476 2595:5e7b45489430
21 import threading 21 import threading
22 import traceback 22 import traceback
23 from time import sleep 23 from time import sleep
24 from StringIO import StringIO 24 from StringIO import StringIO
25 25
26 try: 26 from MoinMoin.support.python_compatibility import set
27 set 27
28 except:
29 from sets import Set as set
30 28
31 class AbstractMonitor(object): 29 class AbstractMonitor(object):
32 def activate_hook(self): 30 def activate_hook(self):
33 """ Activates the thread monitor hook. Note that this might interfere 31 """ Activates the thread monitor hook. Note that this might interfere
34 with any kind of profiler and some debugging extensions. """ 32 with any kind of profiler and some debugging extensions. """