@@ -64,10 +64,11 @@ from pandas.errors import (ParserError, DtypeWarning,
64
64
CParserError = ParserError
65
65
66
66
67
- cdef bint PY3 = (sys.version_info[0 ] >= 3 )
67
+ cdef:
68
+ bint PY3 = (sys.version_info[0 ] >= 3 )
68
69
69
- cdef float64_t INF = < float64_t> np.inf
70
- cdef float64_t NEGINF = - INF
70
+ float64_t INF = < float64_t> np.inf
71
+ float64_t NEGINF = - INF
71
72
72
73
73
74
cdef extern from " errno.h" :
@@ -735,7 +736,7 @@ cdef class TextReader:
735
736
int status
736
737
int64_t hr, data_line
737
738
char * errors = " strict"
738
- cdef StringPath path = _string_path(self .c_encoding)
739
+ StringPath path = _string_path(self .c_encoding)
739
740
740
741
header = []
741
742
unnamed_cols = set ()
@@ -1389,8 +1390,9 @@ cdef class TextReader:
1389
1390
return None
1390
1391
1391
1392
1392
- cdef object _true_values = [b' True' , b' TRUE' , b' true' ]
1393
- cdef object _false_values = [b' False' , b' FALSE' , b' false' ]
1393
+ cdef:
1394
+ object _true_values = [b' True' , b' TRUE' , b' true' ]
1395
+ object _false_values = [b' False' , b' FALSE' , b' false' ]
1394
1396
1395
1397
1396
1398
def _ensure_encoded (list lst ):
@@ -1637,7 +1639,7 @@ cdef _categorical_convert(parser_t *parser, int64_t col,
1637
1639
int64_t current_category = 0
1638
1640
1639
1641
char * errors = " strict"
1640
- cdef StringPath path = _string_path(encoding)
1642
+ StringPath path = _string_path(encoding)
1641
1643
1642
1644
int ret = 0
1643
1645
kh_str_t * table
@@ -1727,9 +1729,10 @@ cdef inline void _to_fw_string_nogil(parser_t *parser, int64_t col,
1727
1729
data += width
1728
1730
1729
1731
1730
- cdef char * cinf = b' inf'
1731
- cdef char * cposinf = b' +inf'
1732
- cdef char * cneginf = b' -inf'
1732
+ cdef:
1733
+ char * cinf = b' inf'
1734
+ char * cposinf = b' +inf'
1735
+ char * cneginf = b' -inf'
1733
1736
1734
1737
1735
1738
cdef _try_double(parser_t * parser, int64_t col,
0 commit comments