mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +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
|
import re
|
||||||
|
from functools import reduce
|
||||||
from _csv import Error, __version__, writer, reader, register_dialect, \
|
from _csv import Error, __version__, writer, reader, register_dialect, \
|
||||||
unregister_dialect, get_dialect, list_dialects, \
|
unregister_dialect, get_dialect, list_dialects, \
|
||||||
field_size_limit, \
|
field_size_limit, \
|
||||||
|
|
|
@ -60,10 +60,10 @@ Library
|
||||||
|
|
||||||
- Changed code in the following modules/packages to remove warnings raised
|
- Changed code in the following modules/packages to remove warnings raised
|
||||||
while running under the ``-3`` flag: aifc, asynchat, asyncore, bdb, bsddb,
|
while running under the ``-3`` flag: aifc, asynchat, asyncore, bdb, bsddb,
|
||||||
ConfigParser, cookielib, difflib, DocXMLRPCServer, email, filecmp, fileinput,
|
ConfigParser, cookielib, csv, difflib, DocXMLRPCServer, email, filecmp,
|
||||||
inspect, logging, modulefinder, pdb, pickle, profile, pstats, pydoc, re,
|
fileinput, inspect, logging, modulefinder, pdb, pickle, profile, pstats,
|
||||||
rlcompleter, SimpleXMLRPCServer, shelve, socket, subprocess, sqlite3,
|
pydoc, re, rlcompleter, SimpleXMLRPCServer, shelve, socket, subprocess,
|
||||||
tarfile, Tkinter, test.test_support, textwrap, threading, tokenize,
|
sqlite3, tarfile, Tkinter, test.test_support, textwrap, threading, tokenize,
|
||||||
traceback, urlparse, wsgiref, xml, xmlrpclib.
|
traceback, urlparse, wsgiref, xml, xmlrpclib.
|
||||||
|
|
||||||
- Issue #3039: Fix tarfile.TarFileCompat.writestr() which always
|
- Issue #3039: Fix tarfile.TarFileCompat.writestr() which always
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue