1. ms2ger
  2. Anolis


Geoffrey Sneddon  committed b5af9cd

Manually pass globals and locals to cProfile to work around bug in it.

  • Participants
  • Parent commits d91fd1a
  • Branches default

Comments (0)

Files changed (1)

File anolislib/generator.py

View file
  • Ignore whitespace
             import cProfile
             import pstats
-            cProfile.run("process(tree, processes, **kwargs)", statfile)
+            cProfile.runctx("process(tree, processes, **kwargs)", globals(),
+                            locals(), statfile)
             stats = pstats.Stats(statfile)
         except None:
             import hotshot