Skip to content

Commit

Permalink
docs: Use next() function instead of .next() method, closes #1204
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Jul 20, 2023
1 parent da9c04c commit f1ee8ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/scripts/csvpy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Basic use:
$ csvpy examples/dummy.csv
Welcome! "examples/dummy.csv" has been loaded in a reader object named "reader".
>>> reader.next()
>>> next(reader)
['a', 'b', 'c']

As a dictionary:
Expand All @@ -53,7 +53,7 @@ As a dictionary:
$ csvpy --dict examples/dummy.csv
Welcome! "examples/dummy.csv" has been loaded in a DictReader object named "reader".
>>> reader.next()
>>> next(reader)
{'a': '1', 'c': '3', 'b': '2'}
As an agate table:
Expand Down

0 comments on commit f1ee8ff

Please sign in to comment.