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:
13591359 Py_ssize_t i, j, lines = end - start
13601360 coliter_t it
13611361 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'
13621366
13631367 coliter_setup(& it, self .parser, col, start)
13641368
1365- ignored_chars = b" +-"
1366- digits = b" 0123456789"
1367- float_indicating_chars = b" eE"
1368-
13691369 for i in range (lines):
13701370 COLITER_NEXT(it, word)
13711371
@@ -1374,7 +1374,7 @@ cdef class TextReader:
13741374
13751375 found_first_digit = False
13761376 j = 0
1377- while word[j] != b " \0 " :
1377+ while word[j] != null_byte :
13781378 if word[j] == self .parser.decimal:
13791379 return True
13801380 elif not found_first_digit and word[j] in ignored_chars:
You can’t perform that action at this time.
0 commit comments