mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
Silence warnings in csv about using reduce() when run under -3 by using
functools.reduce() instead.
This commit is contained in:
parent
46265860c2
commit
9fc5631be6
2 changed files with 5 additions and 4 deletions
|
@ -4,6 +4,7 @@ csv.py - read/write/investigate CSV files
|
|||
"""
|
||||
|
||||
import re
|
||||
from functools import reduce
|
||||
from _csv import Error, __version__, writer, reader, register_dialect, \
|
||||
unregister_dialect, get_dialect, list_dialects, \
|
||||
field_size_limit, \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue