Silence warnings in csv about using reduce() when run under -3 by using

functools.reduce() instead.
This commit is contained in:
Brett Cannon 2008-08-09 23:39:11 +00:00
parent 46265860c2
commit 9fc5631be6
2 changed files with 5 additions and 4 deletions

View File

@ -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, \

View File

@ -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