Skip to content

Commit 87c6649

Browse files
committed
Add missing native exception object 'EOFError'.
1 parent df806a7 commit 87c6649

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

graalpython/com.oracle.graal.python.cext/src/exceptions.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ PyObject * PyExc_NotImplementedError = NULL;
8383
PyObject * PyExc_RecursionError = NULL;
8484
PyObject * PyExc_UnicodeEncodeError = NULL;
8585
PyObject * PyExc_GeneratorExit = NULL;
86+
PyObject * PyExc_EOFError = NULL;
8687

8788
void initialize_exceptions() {
8889
PyExc_AttributeError = PY_EXCEPTION("AttributeError");
@@ -122,6 +123,7 @@ void initialize_exceptions() {
122123
PyExc_NotImplementedError = PY_EXCEPTION("NotImplementedError");
123124
PyExc_UnicodeEncodeError = PY_EXCEPTION("UnicodeEncodeError");
124125
PyExc_GeneratorExit = PY_EXCEPTION("GeneratorExit");
126+
PyExc_EOFError = PY_EXCEPTION("EOFError");
125127
}
126128

127129

0 commit comments

Comments
 (0)