File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -743,19 +743,16 @@ def read(self):
743
743
elif self .lines :
744
744
data = ensure_str (self .data )
745
745
if self .nrows :
746
- compiled_pattern = re .compile ("\n " )
746
+ compiled_pattern = re .compile (".* \n " )
747
747
data_iterator = compiled_pattern .finditer (data )
748
- data_surrogate = []
749
- start = 0
748
+ data = []
750
749
nrows_seen = 0
750
+ print (data_iterator )
751
751
for vals in data_iterator :
752
752
if nrows_seen >= self .nrows :
753
753
break
754
- begin , end = vals .span ()
755
- data_surrogate .append (data [start :begin ].strip ())
756
- start = end
754
+ data .append (vals .group (0 ))
757
755
nrows_seen += 1
758
- data = data_surrogate
759
756
else :
760
757
data = data .split ("\n " )
761
758
obj = self ._get_object_parser (self ._combine_lines (data ))
You can’t perform that action at this time.
0 commit comments