Skip to content

Commit 8302fb7

Browse files
Say 'delimiters', not 'combinations'
The maintenance branches do not deduce the dialect by trying combinations of parameters, so only the delimiter candidates can tie.
1 parent 5c4ba45 commit 8302fb7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/library/csv.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ The :mod:`csv` module defines the following classes:
314314
is given, it is interpreted as a string containing possible valid
315315
delimiter characters.
316316

317-
If several combinations fit the sample equally well ---
317+
If several delimiters fit the sample equally well ---
318318
for example if both ``','`` and ``';'`` split every row consistently ---
319319
the delimiters ``','``, ``'\t'``, ``';'``, ``' '`` and ``':'``
320320
are preferred, in this order,

Lib/csv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def sniff(self, sample, delimiters=None):
245245
"""
246246
Returns a dialect (or None) corresponding to the sample
247247
248-
If several combinations fit the sample equally well, the
248+
If several delimiters fit the sample equally well, the
249249
delimiters listed in the preferred attribute are preferred, in
250250
that order, no matter how many times each of them occurs.
251251
"""

0 commit comments

Comments
 (0)