Skip to content

Commit fbd8b14

Browse files
raminfppicnixz
andauthored
Update Modules/_csv.c
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
1 parent c9b4479 commit fbd8b14

1 file changed

Lines changed: 13 additions & 12 deletions

File tree

Modules/_csv.c

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -497,18 +497,19 @@ dialect_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
497497
Py_XINCREF(skipinitialspace);
498498
Py_XINCREF(strict);
499499
if (dialect != NULL) {
500-
#define DIALECT_GETATTR(v, n) \
501-
do { \
502-
if (v == NULL) { \
503-
v = PyObject_GetAttrString(dialect, n); \
504-
if (v == NULL) { \
505-
if (PyErr_ExceptionMatches( \
506-
PyExc_AttributeError)) \
507-
PyErr_Clear(); \
508-
else \
509-
goto err; \
510-
} \
511-
} \
500+
#define DIALECT_GETATTR(v, n) \
501+
do { \
502+
if (v == NULL) { \
503+
v = PyObject_GetAttrString(dialect, n); \
504+
if (v == NULL) { \
505+
if (PyErr_ExceptionMatches(PyExc_AttributeError)) { \
506+
PyErr_Clear(); \
507+
} \
508+
else { \
509+
goto err; \
510+
} \
511+
} \
512+
} \
512513
} while (0)
513514
DIALECT_GETATTR(delimiter, "delimiter");
514515
DIALECT_GETATTR(doublequote, "doublequote");

0 commit comments

Comments
 (0)