commit 8e2d0966a3adeaa0ff1cf5d30343b5df45b9b923 Author: David Malcolm dmalcolm@redhat.com Date: Wed Jun 29 20:17:52 2011 -0400
Disable the checker by default again (accidentally enabled in last commit)
libcpychecker/__init__.py | 16 +++------------- 1 files changed, 3 insertions(+), 13 deletions(-) --- diff --git a/libcpychecker/__init__.py b/libcpychecker/__init__.py index 5188fad..85dee13 100644 --- a/libcpychecker/__init__.py +++ b/libcpychecker/__init__.py @@ -32,19 +32,9 @@ def on_pass_execution(optpass, fun, log(fun) check_pyargs(fun)
- # non-SSA version of the checker: - check_refcounts(fun, show_traces) - - # The refcount code is too buggy for now to be on by default: - if not verify_refcounting: - return - - if 0: # optpass.name == 'release_ssa': - # SSA data needed: - assert optpass.properties_required & (1<<5) - # methods = get_all_PyMethodDef_methods() - # log('methods: %s' % methods) - check_refcounts(fun, show_traces) + # The refcount code is too buggy for now to be on by default: + if verify_refcounting: + check_refcounts(fun, show_traces)
def is_a_method_callback(decl): methods = get_all_PyMethodDef_methods()