[Python-checkins] r65619 - in python/trunk: Lib/csv.py Misc/NEWS

brett.cannon python-checkins at python.org
Sun Aug 10 01:39:11 CEST 2008


Author: brett.cannon
Date: Sun Aug 10 01:39:11 2008
New Revision: 65619

Log:
Silence warnings in csv about using reduce() when run under -3 by using
functools.reduce() instead.


Modified:
   python/trunk/Lib/csv.py
   python/trunk/Misc/NEWS

Modified: python/trunk/Lib/csv.py
==============================================================================
--- python/trunk/Lib/csv.py	(original)
+++ python/trunk/Lib/csv.py	Sun Aug 10 01:39:11 2008
@@ -4,6 +4,7 @@
 """
 
 import re
+from functools import reduce
 from _csv import Error, __version__, writer, reader, register_dialect, \
                  unregister_dialect, get_dialect, list_dialects, \
                  field_size_limit, \

Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS	(original)
+++ python/trunk/Misc/NEWS	Sun Aug 10 01:39:11 2008
@@ -60,10 +60,10 @@
 
 - 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


More information about the Python-checkins mailing list