Update documentation for csv module to reflect changes in code,

specifically that it now expects unicode input (and therefore the
paragraph about it not handling unicode is deleted, as well as
the 'how to handle unicode' examples) and that files should
be opened with "newline=''" instead of binary mode.  Also removed
unused BytesIO import from test_csv.

This addresses issue 4847.
This commit is contained in:
R. David Murray 2009-04-04 01:38:38 +00:00
parent 3c33b833dd
commit 8b7d4aa746
2 changed files with 31 additions and 121 deletions

View file

@ -6,7 +6,7 @@ import io
import sys
import os
import unittest
from io import StringIO, BytesIO
from io import StringIO
from tempfile import TemporaryFile
import csv
import gc