Browse Source

*** empty log message ***

Josh Yelon 20 years ago
parent
commit
9bf5453c52
1 changed files with 5 additions and 7 deletions
  1. 5 7
      direct/src/directutil/MemoryLeakHelpers.py

+ 5 - 7
direct/src/directutil/MemoryLeakHelpers.py

@@ -7,13 +7,11 @@
 # fsm-redefine 0
 # fsm-redefine 0
 # want-dev 0
 # want-dev 0
 
 
-
-import gc
-gc.set_debug(gc.DEBUG_LEAK)
-gc.collect()
-
-# This will be a list of the uncollectables
-print gc.garbage
+if (__builtins__.__dict__.has_key("running-epydoc")==0):
+    import gc
+    gc.set_debug(gc.DEBUG_LEAK)
+    gc.collect()
+    print gc.garbage
 
 
 # Inside DistributedObjectAI, you can uncomment the __del__ function to
 # Inside DistributedObjectAI, you can uncomment the __del__ function to
 # see when your objects are being deleted (or not)
 # see when your objects are being deleted (or not)