Skip to content

Commit 9f5046c

Browse files
committed
removed residue code
1 parent 048beba commit 9f5046c

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

pandas/io/parsers/python_parser.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -916,12 +916,7 @@ def _next_line(self) -> list[Scalar]:
916916
else:
917917
while self.skipfunc(self.pos):
918918
self.pos += 1
919-
try:
920-
next(self.data)
921-
except csv.Error:
922-
# CSV parsing error on a skipped line is acceptable
923-
# The line is being discarded without using its content
924-
pass
919+
next(self.data)
925920

926921
while True:
927922
orig_line = self._next_iter_line(row_num=self.pos + 1)

0 commit comments

Comments
 (0)