Note that the excel_tab class is registered as the "excel-tab" dialect.

Fixes 1572471.  Make a similar change for the excel class and clean up
references to the Dialects and Formatting Parameters section in a few
places.
This commit is contained in:
Skip Montanaro 2006-10-07 11:05:02 +00:00
parent 9b3a824097
commit fe6e46d42a
1 changed files with 10 additions and 10 deletions

View File

@ -64,9 +64,9 @@ dialect. It may be an instance of a subclass of the \class{Dialect}
class or one of the strings returned by the \function{list_dialects} class or one of the strings returned by the \function{list_dialects}
function. The other optional {}\var{fmtparam} keyword arguments can be function. The other optional {}\var{fmtparam} keyword arguments can be
given to override individual formatting parameters in the current given to override individual formatting parameters in the current
dialect. For more information about the dialect and formatting dialect. For full details about the dialect and formatting
parameters, see section~\ref{csv-fmt-params}, ``Dialects and Formatting parameters, see section~\ref{csv-fmt-params}, ``Dialects and Formatting
Parameters'' for details of these parameters. Parameters''.
All data read are returned as strings. No automatic data type All data read are returned as strings. No automatic data type
conversion is performed. conversion is performed.
@ -96,10 +96,10 @@ parameters specific to a particular CSV dialect. It may be an instance
of a subclass of the \class{Dialect} class or one of the strings of a subclass of the \class{Dialect} class or one of the strings
returned by the \function{list_dialects} function. The other optional returned by the \function{list_dialects} function. The other optional
{}\var{fmtparam} keyword arguments can be given to override individual {}\var{fmtparam} keyword arguments can be given to override individual
formatting parameters in the current dialect. For more information formatting parameters in the current dialect. For full details
about the dialect and formatting parameters, see about the dialect and formatting parameters, see
section~\ref{csv-fmt-params}, ``Dialects and Formatting Parameters'' for section~\ref{csv-fmt-params}, ``Dialects and Formatting Parameters''.
details of these parameters. To make it as easy as possible to To make it as easy as possible to
interface with modules which implement the DB API, the value interface with modules which implement the DB API, the value
\constant{None} is written as the empty string. While this isn't a \constant{None} is written as the empty string. While this isn't a
reversible transformation, it makes it easier to dump SQL NULL data values reversible transformation, it makes it easier to dump SQL NULL data values
@ -113,9 +113,8 @@ Associate \var{dialect} with \var{name}. \var{name} must be a string
or Unicode object. The dialect can be specified either by passing a or Unicode object. The dialect can be specified either by passing a
sub-class of \class{Dialect}, or by \var{fmtparam} keyword arguments, sub-class of \class{Dialect}, or by \var{fmtparam} keyword arguments,
or both, with keyword arguments overriding parameters of the dialect. or both, with keyword arguments overriding parameters of the dialect.
For more information about the dialect and formatting parameters, see For full details about the dialect and formatting parameters, see
section~\ref{csv-fmt-params}, ``Dialects and Formatting Parameters'' section~\ref{csv-fmt-params}, ``Dialects and Formatting Parameters''.
for details of these parameters.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{unregister_dialect}{name} \begin{funcdesc}{unregister_dialect}{name}
@ -197,12 +196,13 @@ attributes, which are used to define the parameters for a specific
\begin{classdesc}{excel}{} \begin{classdesc}{excel}{}
The \class{excel} class defines the usual properties of an Excel-generated The \class{excel} class defines the usual properties of an Excel-generated
CSV file. CSV file. It is registered with the dialect name \code{'excel'}.
\end{classdesc} \end{classdesc}
\begin{classdesc}{excel_tab}{} \begin{classdesc}{excel_tab}{}
The \class{excel_tab} class defines the usual properties of an The \class{excel_tab} class defines the usual properties of an
Excel-generated TAB-delimited file. Excel-generated TAB-delimited file. It is registered with the dialect name
\code{'excel-tab'}.
\end{classdesc} \end{classdesc}
\begin{classdesc}{Sniffer}{} \begin{classdesc}{Sniffer}{}