@@ -361,7 +361,7 @@ cdef class TextReader:
361
361
if not isinstance (encoding, bytes):
362
362
encoding = encoding.encode(' utf-8' )
363
363
encoding = encoding.lower()
364
- self .c_encoding = < char * > encoding
364
+ self .c_encoding = < char * > encoding
365
365
else :
366
366
self .c_encoding = NULL
367
367
@@ -611,7 +611,7 @@ cdef class TextReader:
611
611
for i in self .skiprows:
612
612
parser_add_skiprow(self .parser, i)
613
613
else :
614
- self .parser.skipfunc = < PyObject * > self .skiprows
614
+ self .parser.skipfunc = < PyObject * > self .skiprows
615
615
616
616
cdef _setup_parser_source(self , source):
617
617
cdef:
@@ -668,7 +668,7 @@ cdef class TextReader:
668
668
source = icom.UTF8Recoder(source,
669
669
self .encoding.decode(' utf-8' ))
670
670
self .encoding = b' utf-8'
671
- self .c_encoding = < char * > self .encoding
671
+ self .c_encoding = < char * > self .encoding
672
672
673
673
self .handle = source
674
674
@@ -1444,7 +1444,7 @@ cdef _string_box_factorize(parser_t *parser, int64_t col,
1444
1444
pyval = PyBytes_FromString(word)
1445
1445
1446
1446
k = kh_put_strbox(table, word, & ret)
1447
- table.vals[k] = < PyObject* > pyval
1447
+ table.vals[k] = < PyObject* > pyval
1448
1448
1449
1449
result[i] = pyval
1450
1450
@@ -1498,7 +1498,7 @@ cdef _string_box_utf8(parser_t *parser, int64_t col,
1498
1498
pyval = PyUnicode_FromString(word)
1499
1499
1500
1500
k = kh_put_strbox(table, word, & ret)
1501
- table.vals[k] = < PyObject * > pyval
1501
+ table.vals[k] = < PyObject * > pyval
1502
1502
1503
1503
result[i] = pyval
1504
1504
@@ -1556,7 +1556,7 @@ cdef _string_box_decode(parser_t *parser, int64_t col,
1556
1556
pyval = PyUnicode_Decode(word, size, encoding, errors)
1557
1557
1558
1558
k = kh_put_strbox(table, word, & ret)
1559
- table.vals[k] = < PyObject * > pyval
1559
+ table.vals[k] = < PyObject * > pyval
1560
1560
1561
1561
result[i] = pyval
1562
1562
@@ -1648,7 +1648,7 @@ cdef _to_fw_string(parser_t *parser, int64_t col, int64_t line_start,
1648
1648
ndarray result
1649
1649
1650
1650
result = np.empty(line_end - line_start, dtype = ' |S%d ' % width)
1651
- data = < char * > result.data
1651
+ data = < char * > result.data
1652
1652
1653
1653
with nogil:
1654
1654
_to_fw_string_nogil(parser, col, line_start, line_end, width, data)
@@ -1695,7 +1695,7 @@ cdef _try_double(parser_t *parser, int64_t col,
1695
1695
1696
1696
lines = line_end - line_start
1697
1697
result = np.empty(lines, dtype = np.float64)
1698
- data = < double * > result.data
1698
+ data = < double * > result.data
1699
1699
na_fset = kset_float64_from_list(na_flist)
1700
1700
if parser.double_converter_nogil != NULL : # if it can run without the GIL
1701
1701
with nogil:
@@ -1803,7 +1803,7 @@ cdef _try_uint64(parser_t *parser, int64_t col,
1803
1803
1804
1804
lines = line_end - line_start
1805
1805
result = np.empty(lines, dtype = np.uint64)
1806
- data = < uint64_t * > result.data
1806
+ data = < uint64_t * > result.data
1807
1807
1808
1808
uint_state_init(& state)
1809
1809
coliter_setup(& it, parser, col, line_start)
@@ -1879,7 +1879,7 @@ cdef _try_int64(parser_t *parser, int64_t col,
1879
1879
1880
1880
lines = line_end - line_start
1881
1881
result = np.empty(lines, dtype = np.int64)
1882
- data = < int64_t * > result.data
1882
+ data = < int64_t * > result.data
1883
1883
coliter_setup(& it, parser, col, line_start)
1884
1884
with nogil:
1885
1885
error = _try_int64_nogil(parser, col, line_start, line_end,
@@ -1951,7 +1951,7 @@ cdef _try_bool_flex(parser_t *parser, int64_t col,
1951
1951
1952
1952
lines = line_end - line_start
1953
1953
result = np.empty(lines, dtype = np.uint8)
1954
- data = < uint8_t * > result.data
1954
+ data = < uint8_t * > result.data
1955
1955
with nogil:
1956
1956
error = _try_bool_flex_nogil(parser, col, line_start, line_end,
1957
1957
na_filter, na_hashset, true_hashset,
0 commit comments