Skip to content

Commit df9c34a

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 3f7cc33 commit df9c34a

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
@@ -244,7 +244,7 @@ def sniff(self, sample, delimiters=None):
244244
"""
245245
Returns a dialect (or None) corresponding to the sample
246246
247-
If several combinations fit the sample equally well, the
247+
If several delimiters fit the sample equally well, the
248248
delimiters listed in the preferred attribute are preferred, in
249249
that order, no matter how many times each of them occurs.
250250
"""

0 commit comments

Comments
 (0)