Skip to content

Commit

Permalink
docs: Clarify comment from 1db7277 and remove incorrect interpretation
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Apr 28, 2024
1 parent d18b6da commit 67181ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
1.10.0 - April 27, 2024
-----------------------

- 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)
- 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)
- fix: Fix :meth:`.TableSet.print_structure` for nested tablesets. (#765)

.. code-block:: python
Expand Down
2 changes: 1 addition & 1 deletion agate/table/from_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def from_csv(cls, path, column_names=None, column_types=None, row_names=None, sk
handle = f

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

0 comments on commit 67181ed

Please sign in to comment.