mirror of
https://github.com/python/cpython.git
synced 2025-08-22 01:35:16 +00:00
gh-67230: add quoting rules to csv module (GH-29469)
Add two quoting styles for csv dialects. They will help to work with certain databases in particular. Automerge-Triggered-By: GH:merwok
This commit is contained in:
parent
2b6e877767
commit
330a942b63
5 changed files with 43 additions and 3 deletions
|
@ -9,12 +9,14 @@ from _csv import Error, __version__, writer, reader, register_dialect, \
|
|||
unregister_dialect, get_dialect, list_dialects, \
|
||||
field_size_limit, \
|
||||
QUOTE_MINIMAL, QUOTE_ALL, QUOTE_NONNUMERIC, QUOTE_NONE, \
|
||||
QUOTE_STRINGS, QUOTE_NOTNULL, \
|
||||
__doc__
|
||||
from _csv import Dialect as _Dialect
|
||||
|
||||
from io import StringIO
|
||||
|
||||
__all__ = ["QUOTE_MINIMAL", "QUOTE_ALL", "QUOTE_NONNUMERIC", "QUOTE_NONE",
|
||||
"QUOTE_STRINGS", "QUOTE_NOTNULL",
|
||||
"Error", "Dialect", "__doc__", "excel", "excel_tab",
|
||||
"field_size_limit", "reader", "writer",
|
||||
"register_dialect", "get_dialect", "list_dialects", "Sniffer",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue