@@ -172,8 +172,8 @@ cdef extern from "parser/tokenizer.h":
172
172
173
173
void debug_print_parser(parser_t * self )
174
174
175
- int tokenize_all_rows(parser_t * self ) nogil
176
- int tokenize_nrows(parser_t * self , size_t nrows) nogil
175
+ int tokenize_all_rows(parser_t * self )
176
+ int tokenize_nrows(parser_t * self , size_t nrows)
177
177
178
178
int64_t str_to_int64(char * p_item, int64_t int_min,
179
179
int64_t int_max, int * error, char tsep)
@@ -695,8 +695,7 @@ cdef class TextReader:
695
695
696
696
cdef _tokenize_rows(self , size_t nrows):
697
697
cdef int status
698
- with nogil:
699
- status = tokenize_nrows(self .parser, nrows)
698
+ status = tokenize_nrows(self .parser, nrows)
700
699
701
700
if self .parser.warn_msg != NULL :
702
701
print >> sys.stderr, self .parser.warn_msg
@@ -723,8 +722,7 @@ cdef class TextReader:
723
722
raise ValueError (' skip_footer can only be used to read '
724
723
' the whole file' )
725
724
else :
726
- with nogil:
727
- status = tokenize_all_rows(self .parser)
725
+ status = tokenize_all_rows(self .parser)
728
726
729
727
if self .parser.warn_msg != NULL :
730
728
print >> sys.stderr, self .parser.warn_msg
0 commit comments