diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-04-25 01:29:10 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-04-25 01:29:10 (GMT) |
commit | c7b05920d6536f7edba098d5018a470d35f2e864 (patch) | |
tree | ce0f68baf5c7794f235604c64cde02c12aeed3de /Doc/library/csv.rst | |
parent | 1c596d5604e4fc79944281ddc5baa666f6e27e85 (diff) | |
download | cpython-c7b05920d6536f7edba098d5018a470d35f2e864.zip cpython-c7b05920d6536f7edba098d5018a470d35f2e864.tar.gz cpython-c7b05920d6536f7edba098d5018a470d35f2e864.tar.bz2 |
reformat some documentation of classes so methods and attributes are under the class directive
Diffstat (limited to 'Doc/library/csv.rst')
-rw-r--r-- | Doc/library/csv.rst | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/Doc/library/csv.rst b/Doc/library/csv.rst index 89c9bf1..eef3cfd 100644 --- a/Doc/library/csv.rst +++ b/Doc/library/csv.rst @@ -218,19 +218,20 @@ The :mod:`csv` module defines the following classes: The :class:`Sniffer` class is used to deduce the format of a CSV file. -The :class:`Sniffer` class provides two methods: + The :class:`Sniffer` class provides two methods: -.. method:: Sniffer.sniff(sample[, delimiters=None]) + .. method:: sniff(sample[, delimiters=None]) - Analyze the given *sample* and return a :class:`Dialect` subclass reflecting the - parameters found. If the optional *delimiters* parameter is given, it is - interpreted as a string containing possible valid delimiter characters. + Analyze the given *sample* and return a :class:`Dialect` subclass + reflecting the parameters found. If the optional *delimiters* parameter + is given, it is interpreted as a string containing possible valid + delimiter characters. -.. method:: Sniffer.has_header(sample) + .. method:: has_header(sample) - Analyze the sample text (presumed to be in CSV format) and return :const:`True` - if the first row appears to be a series of column headers. + Analyze the sample text (presumed to be in CSV format) and return + :const:`True` if the first row appears to be a series of column headers. An example for :class:`Sniffer` use:: |