Commit bdda9f38 authored by Skip Montanaro's avatar Skip Montanaro

The example files need to be opened with the "b" flag.

parent 1281f766
......@@ -312,7 +312,7 @@ The ``Hello, world'' of csv reading is
\begin{verbatim}
import csv
reader = csv.reader(file("some.csv"))
reader = csv.reader(file("some.csv", "rb"))
for row in reader:
print row
\end{verbatim}
......@@ -321,7 +321,7 @@ The corresponding simplest possible writing example is
\begin{verbatim}
import csv
writer = csv.writer(file("some.csv", "w"))
writer = csv.writer(file("some.csv", "wb"))
for row in someiterable:
writer.writerow(row)
\end{verbatim}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment