Skip to content

Commit 01413ca

Browse files
Rename WFERR_ERROR_SET to WFERR_EXCEPTION_SET
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 9b05276 commit 01413ca

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Python/marshal.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ module marshal
106106
#define WFERR_NESTEDTOODEEP 2
107107
#define WFERR_NOMEMORY 3
108108
#define WFERR_CODE_NOT_ALLOWED 4
109-
#define WFERR_ERROR_SET 5 /* An exception has already been raised. */
109+
#define WFERR_EXCEPTION_SET 5 /* An exception has already been raised. */
110110

111111
typedef struct {
112112
FILE *fp;
@@ -135,7 +135,7 @@ w_file_error(WFILE *p)
135135
if (p->error != WFERR_OK) {
136136
return;
137137
}
138-
p->error = WFERR_ERROR_SET;
138+
p->error = WFERR_EXCEPTION_SET;
139139
if (PyErr_CheckSignals()) {
140140
/* The signal handler has raised an exception. */
141141
return;
@@ -823,7 +823,7 @@ w_set_exception(WFILE *p)
823823
PyErr_SetString(PyExc_ValueError,
824824
"marshalling code objects is disallowed");
825825
break;
826-
case WFERR_ERROR_SET:
826+
case WFERR_EXCEPTION_SET:
827827
/* An exception has already been raised. */
828828
assert(PyErr_Occurred());
829829
break;

0 commit comments

Comments
 (0)