summaryrefslogtreecommitdiffstats
path: root/Objects/exceptions.c
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2022-07-19 01:03:57 (GMT)
committerGitHub <noreply@github.com>2022-07-19 01:03:57 (GMT)
commit7a1a85d64088a9eaefaf30d6aa50711cb4ed8245 (patch)
tree6caaac193bc01417111ddb268b50a3b02ac33437 /Objects/exceptions.c
parent0daba822212cd5d6c63384a27f390f0945330c2b (diff)
downloadcpython-7a1a85d64088a9eaefaf30d6aa50711cb4ed8245.zip
cpython-7a1a85d64088a9eaefaf30d6aa50711cb4ed8245.tar.gz
cpython-7a1a85d64088a9eaefaf30d6aa50711cb4ed8245.tar.bz2
gh-94673: [c-analyzer] Add a Script to Identify Static Types (#94989)
issue: https://github.com/python/cpython/issues/94673
Diffstat (limited to 'Objects/exceptions.c')
-rw-r--r--Objects/exceptions.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/Objects/exceptions.c b/Objects/exceptions.c
index e212e02..9aab683 100644
--- a/Objects/exceptions.c
+++ b/Objects/exceptions.c
@@ -600,17 +600,9 @@ StopIteration_traverse(PyStopIterationObject *self, visitproc visit, void *arg)
return BaseException_traverse((PyBaseExceptionObject *)self, visit, arg);
}
-ComplexExtendsException(
- PyExc_Exception, /* base */
- StopIteration, /* name */
- StopIteration, /* prefix for *_init, etc */
- 0, /* new */
- 0, /* methods */
- StopIteration_members, /* members */
- 0, /* getset */
- 0, /* str */
- "Signal the end from iterator.__next__()."
-);
+ComplexExtendsException(PyExc_Exception, StopIteration, StopIteration,
+ 0, 0, StopIteration_members, 0, 0,
+ "Signal the end from iterator.__next__().");
/*