mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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:
parent
3c33b833dd
commit
8b7d4aa746
2 changed files with 31 additions and 121 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue