This fixes a bug in impl_PyRun_SimpleStringFlags:
[...]
File "/home/tromey/Space/Trunk/gcc-python-plugin/libcpychecker/refcounts.py",
line 3066, in impl_PyRun_SimpleStringFlags
oc_failure.returns(-1)
NameError: global name 'oc_failure' is not defined
---
libcpychecker/refcounts.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libcpychecker/refcounts.py b/libcpychecker/refcounts.py
index d6f4c55..abe034a 100644
--- a/libcpychecker/refcounts.py
+++ b/libcpychecker/refcounts.py
@@ -3063,7 +3063,7 @@ class CPython(Facet):
on_success.returns(0)
on_failure = fncall.can_fail()
- oc_failure.returns(-1)
+ on_failure.returns(-1)
# (no way to get the exception on failure)
return fncall.get_transitions()
--
1.8.1.4