Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
46265860
Commit
46265860
authored
Aug 09, 2008
by
Brett Cannon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use functools.reduce() in difflib instead of __builtin__.reduce() to silence
warnings when running under -3.
parent
83e81841
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
Lib/difflib.py
Lib/difflib.py
+1
-0
Misc/NEWS
Misc/NEWS
+5
-5
No files found.
Lib/difflib.py
View file @
46265860
...
...
@@ -34,6 +34,7 @@ __all__ = ['get_close_matches', 'ndiff', 'restore', 'SequenceMatcher',
import
heapq
from
collections
import
namedtuple
as
_namedtuple
from
functools
import
reduce
Match
=
_namedtuple
(
'Match'
,
'a b size'
)
...
...
Misc/NEWS
View file @
46265860
...
...
@@ -60,11 +60,11 @@ 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,
DocXMLRPCServer, email, filecmp, fileinput, inspec
t,
logging, modulefinder, pdb, pickle, profile, pstats, pydoc, re, rlcompleter
,
SimpleXMLRPCServer, shelve, socket, subprocess, sqlite3, tarfile, Tkinter
,
t
est.test_support, textwrap, threading, tokenize, traceback, urlpars
e,
wsgiref, xml, xmlrpclib.
ConfigParser, cookielib,
difflib, DocXMLRPCServer, email, filecmp, fileinpu
t,
inspect, logging, modulefinder, pdb, pickle, profile, pstats, pydoc, re
,
rlcompleter, SimpleXMLRPCServer, shelve, socket, subprocess, sqlite3
,
t
arfile, Tkinter, test.test_support, textwrap, threading, tokeniz
e,
traceback, urlparse,
wsgiref, xml, xmlrpclib.
- Issue #3039: Fix tarfile.TarFileCompat.writestr() which always
raised an AttributeError.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment