Skip to content

Commit d8decae

Browse files
committed
Change the way of reading back to readline (consistent with the test before entering the function)
1 parent e24ab24 commit d8decae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/parsers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1868,7 +1868,7 @@ class MyDialect(csv.Dialect):
18681868

18691869
else:
18701870
def _read():
1871-
line = next(f)
1871+
line = f.readline()
18721872
pat = re.compile(sep)
18731873
yield pat.split(line.strip())
18741874
for line in f:

0 commit comments

Comments
 (0)