Skip to content

Commit cb433ad

Browse files
committed
Replaced ImagingError_Clear with PyErr_Clear
1 parent 222b862 commit cb433ad

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

src/_imaging.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -369,11 +369,6 @@ ImagingError_ValueError(const char *message) {
369369
return NULL;
370370
}
371371

372-
void
373-
ImagingError_Clear(void) {
374-
PyErr_Clear();
375-
}
376-
377372
/* -------------------------------------------------------------------- */
378373
/* HELPERS */
379374
/* -------------------------------------------------------------------- */

src/libImaging/Imaging.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,6 @@ extern void *
280280
ImagingError_Mismatch(void); /* maps to ValueError by default */
281281
extern void *
282282
ImagingError_ValueError(const char *message);
283-
extern void
284-
ImagingError_Clear(void);
285283

286284
/* Transform callbacks */
287285
/* ------------------- */

src/libImaging/Storage.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ ImagingNewInternal(const char *mode, int xsize, int ysize, int dirty) {
645645
return im;
646646
}
647647

648-
ImagingError_Clear();
648+
PyErr_Clear();
649649

650650
// Try to allocate the image once more with smallest possible block size
651651
MUTEX_LOCK(&ImagingDefaultArena.mutex);

0 commit comments

Comments
 (0)