summaryrefslogtreecommitdiffstats
path: root/Lib/csv.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/csv.py')
-rw-r--r--Lib/csv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/csv.py b/Lib/csv.py
index f2389fd..262eba8 100644
--- a/Lib/csv.py
+++ b/Lib/csv.py
@@ -294,7 +294,7 @@ class Sniffer:
for char in ascii:
metaFrequency = charFrequency.get(char, {})
# must count even if frequency is 0
- freq = line.strip().count(char)
+ freq = line.count(char)
# value is the mode
metaFrequency[freq] = metaFrequency.get(freq, 0) + 1
charFrequency[char] = metaFrequency