From 44b615c8d3a672890c9d930e553a6eedc6b04d5a Mon Sep 17 00:00:00 2001 From: Ryan Williams Date: Sat, 27 Feb 2010 19:09:55 -0800 Subject: [PATCH] amajorek's commit reminded me that we need the non-monkeypatched thread module here. --- eventlet/green/profile.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eventlet/green/profile.py b/eventlet/green/profile.py index 5759d75..7f8fb6b 100644 --- a/eventlet/green/profile.py +++ b/eventlet/green/profile.py @@ -36,10 +36,11 @@ for var in profile_orig.__all__: import new import sys import traceback -thread = __import__('thread') # Original module needed. 2to3 translated import thread as from . import thread import functools from eventlet import greenthread +from eventlet import patcher +thread = patcher.original('thread') # non-monkeypatched module needed #This class provides the start() and stop() functions class Profile(profile_orig.Profile):