commit 8da67e040d597fe2f4b8c6f3b5690366bb154277
Author: David Malcolm <dmalcolm(a)redhat.com>
Date: Thu Mar 1 17:12:44 2012 -0500
cpychecker: FormatStringError -> FormatStringWarning in 3 places
79e8350b07ed99b5fb01584249e5ee3fbafcbed8 changed FormatStringError to
FormatStringWarning, but in 3 places in the code there were try/except
clauses using the old spelling. Fix them
libcpychecker/refcounts.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libcpychecker/refcounts.py b/libcpychecker/refcounts.py
index eed2ec9..55fdf7c 100644
--- a/libcpychecker/refcounts.py
+++ b/libcpychecker/refcounts.py
@@ -879,7 +879,7 @@ class CPython(Facet):
try:
fmt = PyArgParseFmt.from_string(fmt_string, with_size_t)
_handle_successful_parse(fmt)
- except FormatStringError:
+ except FormatStringWarning:
pass
return self.state.make_transitions_for_fncall(stmt, fnmeta,
@@ -1097,7 +1097,7 @@ class CPython(Facet):
fmt = PyBuildValueFmt.from_string(fmt_string, with_size_t)
if not _handle_successful_parse(fmt):
return [t_failure]
- except FormatStringError:
+ except FormatStringWarning:
pass
return [t_success, t_failure]
@@ -2306,7 +2306,7 @@ class CPython(Facet):
fmt = PyBuildValueFmt.from_string(fmt_string, with_size_t)
if not _handle_successful_parse(fmt):
return [t_failure]
- except FormatStringError:
+ except FormatStringWarning:
pass
return [t_success, t_failure]