mirror of https://github.com/python/cpython
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
|
@ -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, \
|
||||
|
|
|
@ -60,10 +60,10 @@ Library
|
|||
|
||||
- Changed code in the following modules/packages to remove warnings raised
|
||||
while running under the ``-3`` flag: aifc, asynchat, asyncore, bdb, bsddb,
|
||||
ConfigParser, cookielib, difflib, DocXMLRPCServer, email, filecmp, fileinput,
|
||||
inspect, logging, modulefinder, pdb, pickle, profile, pstats, pydoc, re,
|
||||
rlcompleter, SimpleXMLRPCServer, shelve, socket, subprocess, sqlite3,
|
||||
tarfile, Tkinter, test.test_support, textwrap, threading, tokenize,
|
||||
ConfigParser, cookielib, csv, difflib, DocXMLRPCServer, email, filecmp,
|
||||
fileinput, inspect, logging, modulefinder, pdb, pickle, profile, pstats,
|
||||
pydoc, re, rlcompleter, SimpleXMLRPCServer, shelve, socket, subprocess,
|
||||
sqlite3, tarfile, Tkinter, test.test_support, textwrap, threading, tokenize,
|
||||
traceback, urlparse, wsgiref, xml, xmlrpclib.
|
||||
|
||||
- Issue #3039: Fix tarfile.TarFileCompat.writestr() which always
|
||||
|
|
Loading…
Reference in New Issue