Skip to content

Commit 2ccaac0

Browse files
maurycypicnixz
andauthored
Update Lib/csv.py
Co-authored-by: Bénédikt Tran <[email protected]>
1 parent 0b5bcdd commit 2ccaac0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lib/csv.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,8 +381,7 @@ def _guess_delimiter(self, data, delimiters):
381381
iteration += 1
382382
for line in data[start:end]:
383383
seen += 1
384-
charCounts = Counter(line)
385-
for char, count in charCounts.items():
384+
for char, count in Counter(line).items():
386385
if ord(char) < 127:
387386
charFrequency[char][count] += 1
388387

0 commit comments

Comments
 (0)