diff options
author | Thais Siqueira <thais.siqueira@gmail.com> | 2016-08-26 13:42:37 -0300 |
---|---|---|
committer | Thais Siqueira <thais.siqueira@gmail.com> | 2016-08-26 13:42:37 -0300 |
commit | 8e86631f40ae81826b5a6dfa56d38a4c4cbbaaad (patch) | |
tree | 3f3941cc42443dbda59249dbfeedd4b350030bf9 /service/test/reactor | |
parent | 70f660221ef8c10e0d630e032af83db854ec9e1b (diff) |
Revert "showing the full path of inlineCallback method being called"
This reverts commit 8ef8acf8e853fe097c379eed4d65e67f409531d1.
Diffstat (limited to 'service/test/reactor')
-rw-r--r-- | service/test/reactor/defer.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/service/test/reactor/defer.patch b/service/test/reactor/defer.patch index bb20e00c..fdd5a251 100644 --- a/service/test/reactor/defer.patch +++ b/service/test/reactor/defer.patch @@ -1,5 +1,5 @@ diff --git a/lib/python2.7/site-packages/twisted/internet/defer.py b/lib/python2.7/site-packages/twisted/internet/defer.py -index fe9f0a0..92bf379 100644 +index fe9f0a0..5c428d3 100644 --- a/lib/python2.7/site-packages/twisted/internet/defer.py +++ b/lib/python2.7/site-packages/twisted/internet/defer.py @@ -31,6 +31,19 @@ from twisted.logger import Logger @@ -69,7 +69,7 @@ index fe9f0a0..92bf379 100644 "instead got %r" % (f, gen)) - return _inlineCallbacks(None, gen, Deferred()) + currentThreadId = threading.current_thread().ident -+ c = Clock("%s in thread %d" % (str(gen.gi_code), currentThreadId)) ++ c = Clock("%s in thread %d" % (f, currentThreadId)) + result = _inlineCallbacks(None, gen, Deferred()) + c.stop('inlineCallback') + return result |