Skip to content

Commit f0f3c9c

Browse files
authored
Update csv.py from 3.14.3 (#7181)
* Update `csv.py` from 3.14.3 * Don't hardcode error message for `int` class
1 parent d4d010e commit f0f3c9c

3 files changed

Lines changed: 125 additions & 56 deletions

File tree

Lib/csv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ class excel:
6363
written as two quotes
6464
"""
6565

66-
import re
6766
import types
6867
from _csv import Error, writer, reader, register_dialect, \
6968
unregister_dialect, get_dialect, list_dialects, \
@@ -281,6 +280,7 @@ def _guess_quote_and_delimiter(self, data, delimiters):
281280
If there is no quotechar the delimiter can't be determined
282281
this way.
283282
"""
283+
import re
284284

285285
matches = []
286286
for restr in (r'(?P<delim>[^\w\n"\'])(?P<space> ?)(?P<quote>["\']).*?(?P=quote)(?P=delim)', # ,".*?",

0 commit comments

Comments
 (0)