File tree Expand file tree Collapse file tree 3 files changed +1
-10
lines changed Expand file tree Collapse file tree 3 files changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,6 @@ cdef extern from "parser/tokenizer.h":
161
161
162
162
char commentchar
163
163
int allow_embedded_newline
164
- int strict # raise exception on bad CSV */
165
164
166
165
int usecols
167
166
Original file line number Diff line number Diff line change @@ -91,7 +91,6 @@ void parser_set_default_options(parser_t *self) {
91
91
self -> skipinitialspace = 0 ;
92
92
self -> quoting = QUOTE_MINIMAL ;
93
93
self -> allow_embedded_newline = 1 ;
94
- self -> strict = 0 ;
95
94
96
95
self -> expected_fields = -1 ;
97
96
self -> error_bad_lines = 0 ;
@@ -1031,15 +1030,9 @@ int tokenize_bytes(parser_t *self,
1031
1030
} else if (IS_CARRIAGE (c )) {
1032
1031
END_FIELD ();
1033
1032
self -> state = EAT_CRNL ;
1034
- } else if (! self -> strict ) {
1033
+ } else {
1035
1034
PUSH_CHAR (c );
1036
1035
self -> state = IN_FIELD ;
1037
- } else {
1038
- int64_t bufsize = 100 ;
1039
- self -> error_msg = malloc (bufsize );
1040
- snprintf (self -> error_msg , bufsize ,
1041
- "delimiter expected after quote in quote" );
1042
- goto parsingerror ;
1043
1036
}
1044
1037
break ;
1045
1038
Original file line number Diff line number Diff line change @@ -132,7 +132,6 @@ typedef struct parser_t {
132
132
133
133
char commentchar ;
134
134
int allow_embedded_newline ;
135
- int strict ; /* raise exception on bad CSV */
136
135
137
136
int usecols ; // Boolean: 1: usecols provided, 0: none provided
138
137
You can’t perform that action at this time.
0 commit comments