File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1359,13 +1359,13 @@ cdef class TextReader:
1359
1359
Py_ssize_t i, j, lines = end - start
1360
1360
coliter_t it
1361
1361
const char * word = NULL
1362
+ const char * ignored_chars = " +-"
1363
+ const char * digits = " 0123456789"
1364
+ const char * float_indicating_chars = " eE"
1365
+ char null_byte = ' \0'
1362
1366
1363
1367
coliter_setup(& it, self .parser, col, start)
1364
1368
1365
- ignored_chars = b" +-"
1366
- digits = b" 0123456789"
1367
- float_indicating_chars = b" eE"
1368
-
1369
1369
for i in range (lines):
1370
1370
COLITER_NEXT(it, word)
1371
1371
@@ -1374,7 +1374,7 @@ cdef class TextReader:
1374
1374
1375
1375
found_first_digit = False
1376
1376
j = 0
1377
- while word[j] != b " \0 " :
1377
+ while word[j] != null_byte :
1378
1378
if word[j] == self .parser.decimal:
1379
1379
return True
1380
1380
elif not found_first_digit and word[j] in ignored_chars:
You can’t perform that action at this time.
0 commit comments