Skip to content

Commit 02ec923

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 e7e9234 commit 02ec923

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
@@ -312,7 +312,7 @@ The :mod:`!csv` module defines the following classes:
312312
is given, it is interpreted as a string containing possible valid
313313
delimiter characters.
314314

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

Lib/csv.py

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

0 commit comments

Comments
 (0)