Skip to content

Commit f106da2

Browse files
committed
import within Sniffer
1 parent 2dc0d41 commit f106da2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/csv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ class excel:
7171
QUOTE_STRINGS, QUOTE_NOTNULL
7272
from _csv import Dialect as _Dialect
7373

74-
from collections import defaultdict, Counter
7574
from io import StringIO
7675

7776
__all__ = ["QUOTE_MINIMAL", "QUOTE_ALL", "QUOTE_NONNUMERIC", "QUOTE_NONE",
@@ -365,6 +364,7 @@ def _guess_delimiter(self, data, delimiters):
365364
try and evaluate the smallest portion of the data possible, evaluating
366365
additional chunks as necessary.
367366
"""
367+
from collections import Counter, defaultdict
368368

369369
data = list(filter(None, data.split('\n')))
370370

0 commit comments

Comments
 (0)