Skip to content

Commit 502a5d4

Browse files
committed
a label can only be part of a statement and a declaration is not a statement
1 parent e01263b commit 502a5d4

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Modules/_csv.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -965,6 +965,7 @@ Reader_iternext(PyObject *op)
965965
Py_ssize_t pos, linelen, chunk_end, p;
966966
PyObject *lineobj;
967967
DialectObj *dialect;
968+
Py_UCS4 c;
968969

969970
_csvstate *module_state = _csv_state_from_type(Py_TYPE(self),
970971
"Reader.__next__");
@@ -1051,7 +1052,7 @@ Reader_iternext(PyObject *op)
10511052
pos = chunk_end;
10521053

10531054
if (pos < linelen) {
1054-
Py_UCS4 c = PyUnicode_READ_CHAR(lineobj, pos);
1055+
c = PyUnicode_READ_CHAR(lineobj, pos);
10551056
if (parse_process_char(self, module_state, c) < 0) {
10561057
Py_DECREF(lineobj);
10571058
goto err;
@@ -1088,7 +1089,7 @@ Reader_iternext(PyObject *op)
10881089
pos = chunk_end;
10891090

10901091
if (pos < linelen) {
1091-
Py_UCS4 c = PyUnicode_READ_CHAR(lineobj, pos);
1092+
c = PyUnicode_READ_CHAR(lineobj, pos);
10921093
if (parse_process_char(self, module_state, c) < 0) {
10931094
Py_DECREF(lineobj);
10941095
goto err;
@@ -1097,7 +1098,7 @@ Reader_iternext(PyObject *op)
10971098
}
10981099
break;
10991100
default:
1100-
Py_UCS4 c = PyUnicode_READ_CHAR(lineobj, pos);
1101+
c = PyUnicode_READ_CHAR(lineobj, pos);
11011102
if (parse_process_char(self, module_state, c) < 0) {
11021103
Py_DECREF(lineobj);
11031104
goto err;

0 commit comments

Comments
 (0)