Skip to content

Commit 4b62c84

Browse files
committed
use isascii
1 parent 6b64ba4 commit 4b62c84

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
@@ -382,7 +382,7 @@ def _guess_delimiter(self, data, delimiters):
382382
for line in data[start:end]:
383383
num_lines += 1
384384
for char, count in Counter(line).items():
385-
if ord(char) < 127:
385+
if char.isascii():
386386
charFrequency[char][count] += 1
387387

388388
for char, counts in charFrequency.items():

0 commit comments

Comments
 (0)