Skip to content

Commit 67181ed

Browse files
committed
docs: Clarify comment from 1db7277 and remove incorrect interpretation
1 parent d18b6da commit 67181ed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
1.10.0 - April 27, 2024
1313
-----------------------
1414

15-
- feat: :meth:`.Table.from_csv` reads the file line by line. If ``sniff_limit=None``, it reads the file into memory once, instead of twice. If ``column_types`` is a :class:`.TypeTester`, it reads the file into memory. (#778)
15+
- feat: :meth:`.Table.from_csv` reads the file line by line. If ``column_types`` is a :class:`.TypeTester`, it reads the file into memory. (#778)
1616
- fix: Fix :meth:`.TableSet.print_structure` for nested tablesets. (#765)
1717

1818
.. code-block:: python

agate/table/from_csv.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def from_csv(cls, path, column_names=None, column_types=None, row_names=None, sk
6363
handle = f
6464

6565
if sniff_limit is None:
66-
# Reads to the end of the file, but avoid reading the file twice.
66+
# Overwrite `handle` to not read the file a second time in `csv.reader`.
6767
handle = io.StringIO(f.read())
6868
sample = handle.getvalue()
6969
elif sniff_limit > 0:

0 commit comments

Comments
 (0)