leak debugging

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1126 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2003-12-29 19:12:33 +00:00
parent 02f42652fe
commit 0ae492c0ee

View file

@ -29,6 +29,9 @@ def get_debuglevel ():
return _debuglevel
def set_debuglevel (i):
if i>=NIGHTMARE:
import gc
gc.set_debug(gc.DEBUG_LEAK)
global _debuglevel
_debuglevel = i