diff --git a/fsl/utils/trace.py b/fsl/utils/trace.py index 80c6fcd2979c9c7659defcd8c56440931ee5c946..707c71ff708a1e7ed55e568caca7a2d4bb790734 100644 --- a/fsl/utils/trace.py +++ b/fsl/utils/trace.py @@ -105,11 +105,11 @@ if log.getEffectiveLevel() == logging.DEBUG: # Patch the CallQueue instance with # our push/pop implementations - theQ._causes = Queue.Queue() - theQ._realPush = theQ._push - theQ._realPop = theQ._pop - theQ._push = tracePush - theQ._pop = tracePop + theQ._causes = Queue.Queue() + theQ._realPush = theQ._CallQueue__push + theQ._realPop = theQ._CallQueue__pop + theQ._CallQueue__push = tracePush + theQ._CallQueue__pop = tracePop def trace(desc):