Skip to content

Commit

Permalink
Traces are not reliable with contextlib
Browse files Browse the repository at this point in the history
  • Loading branch information
patrys committed Jun 18, 2012
1 parent 05121fc commit 5b57b6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions great_justice/__init__.py
Expand Up @@ -104,10 +104,4 @@ def log_call(self, frame, event, arg):
return self.log_call return self.log_call




@contextlib.contextmanager we_get_signal = Signal
def we_get_signal(logger):
'''
Trace and log the call tree and its result
'''
with Signal(logger):
yield
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -19,7 +19,7 @@
author='Patryk Zawadzki', author='Patryk Zawadzki',
author_email='patrys@gmail.com', author_email='patrys@gmail.com',
description='Debug every ZIG', description='Debug every ZIG',
version = '2012.6.6', version = '2012.6.7',
packages = find_packages(), packages = find_packages(),
classifiers=CLASSIFIERS, classifiers=CLASSIFIERS,
install_requires=REQUIREMENTS, install_requires=REQUIREMENTS,
Expand Down

0 comments on commit 5b57b6d

Please sign in to comment.