diff options
author | Skip Montanaro <skip@pobox.com> | 2005-01-05 06:54:58 (GMT) |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2005-01-05 06:54:58 (GMT) |
commit | f26285ce0be666da5566f1b9be80bba6bbf1d537 (patch) | |
tree | d58d2a32cb80f25cc96412d7e9a0779e877cf78f /Lib | |
parent | 31043cd6d843347d888178d59b8e94f5c0774096 (diff) | |
download | cpython-f26285ce0be666da5566f1b9be80bba6bbf1d537.zip cpython-f26285ce0be666da5566f1b9be80bba6bbf1d537.tar.gz cpython-f26285ce0be666da5566f1b9be80bba6bbf1d537.tar.bz2 |
add a couple missing docstrings
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/csv.py | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -20,6 +20,13 @@ __all__ = [ "QUOTE_MINIMAL", "QUOTE_ALL", "QUOTE_NONNUMERIC", "QUOTE_NONE", "unregister_dialect", "__version__", "DictReader", "DictWriter" ] class Dialect: + """Describe an Excel dialect. + + This must be subclassed (see csv.excel). Valid attributes are: + delimiter, quotechar, escapechar, doublequote, skipinitialspace, + lineterminator, quoting. + + """ _name = "" _valid = False # placeholders @@ -78,6 +85,7 @@ class Dialect: return errors class excel(Dialect): + """Describe the usual properties of Excel-generated CSV files.""" delimiter = ',' quotechar = '"' doublequote = True @@ -87,6 +95,7 @@ class excel(Dialect): register_dialect("excel", excel) class excel_tab(excel): + """Describe the usual properties of Excel-generated TAB-delimited files.""" delimiter = '\t' register_dialect("excel-tab", excel_tab) |