Ezio Melotti
f5469cff1f
#18705 : fix a number of typos. Patch by Févry Thibault.
2013-08-17 15:43:51 +03:00
Raymond Hettinger
7c9d34722d
Issue 11747: Fix output format for context diffs.
2011-04-12 15:48:25 -07:00
Ezio Melotti
c2077b0d9b
#11565 : Fix several typos. Patch by Piotr Kasprzyk.
2011-03-16 12:34:31 +02:00
Terry Reedy
d2d2ae91c5
#2986 Add autojunk parameter to SequenceMatcher to optionally disable 'popular == junk' heuristic.
2010-11-11 23:22:19 +00:00
R. David Murray
1a14d3d169
Issue #7585 : use tab between components in unified and context diff headers.
...
Instead of spaces between the filename and date (or whatever the string
is that follows the filename, if any) use tabs. This is what the unix
'diff' command does, for example, and difflib was intended to follow
the 'standard' way of doing diffs. This improves compatibility with
patch tools. The docs and examples are also changed to recommended that
the date format used be the ISO 8601 format, which is what modern diff
tools emit by default.
Patch by Anatoly Techtonik.
2010-04-12 16:35:19 +00:00
Senthil Kumaran
5c456e6f45
Fix for issue1488943 - difflib.Differ() doesn't always add hints for tab
...
characters.
2009-11-23 18:41:31 +00:00
Mark Dickinson
3e4caeb3bf
Issue #5341 : Fix a variety of spelling errors.
2009-02-21 20:27:01 +00:00
Brett Cannon
46265860c2
Use functools.reduce() in difflib instead of __builtin__.reduce() to silence
...
warnings when running under -3.
2008-08-09 23:34:11 +00:00
Raymond Hettinger
4ac817213b
Issue 3189: Py3k DeprecationWarning in difflib
2008-06-24 15:58:53 +00:00
Raymond Hettinger
0ff4dafee0
Improve usability of the SequenceMatcher by returning named tuples describing match ranges.
2008-01-11 03:20:54 +00:00
Raymond Hettinger
0e520b46ab
SF #1637850 : make_table in difflib did not work with unicode
2007-03-08 21:33:47 +00:00
Andrew M. Kuchling
882680462c
[Bug #1622533 ] Make docstrings raw strings because they contain control characters (\0, \1)
2007-01-05 14:22:17 +00:00
Tim Peters
61bdd39b02
Repaired typo in new comment.
2006-06-14 04:13:00 +00:00
Tim Peters
43898b4f64
SequenceMatcher.get_matching_blocks(): This now guarantees that
...
adjacent triples in the result list describe non-adjacent matching
blocks. That's _nice_ to have, and Guido said he wanted it.
Not a bugfix candidate: Guido or not ;-), this changes visible
endcase semantics (note that some tests had to change), and
nothing about this was documented before. Since it was working
as designed, and behavior was consistent with the docs, it wasn't
"a bug".
2006-06-14 04:09:25 +00:00
Tim Peters
7ca6677218
get_matching_blocks(): rewrote code & comments so they match; added
...
more comments about why it's this way at all; and removed what looked
like needless expense (sorting (i, j, k) triples directly should give
exactly the same order as sorting (i, (i, j, k)) pairs).
2006-06-13 03:30:07 +00:00
Georg Brandl
b2afe855e5
Make use of new str.startswith/endswith semantics.
...
Occurences in email and compiler were ignored due to backwards compat requirements.
2006-06-09 20:43:48 +00:00
Gustavo Niemeyer
548148810b
Patch #1413711 : Certain patterns of differences were making difflib
...
touch the recursion limit. The applied patch inlines the recursive
__helper method in a non-recursive way.
2006-01-31 18:34:13 +00:00
Georg Brandl
7eb4b7d177
Fix all wrong instances of "it's".
2005-07-22 21:49:32 +00:00
Tim Peters
0ca0c64409
SF bug 1054821: difflib HtmlDiff() extra space on inserted 1 character lines
...
Simple correction from the code's author (Dan Gass).
2004-11-12 16:12:15 +00:00
Andrew M. Kuchling
55be9eab38
Typo fix: 'comparisions' is not a word
2004-09-10 12:59:54 +00:00
Tim Peters
48bd7f3a71
Whitespace normalization. test_difflib passes again.
2004-08-29 22:38:38 +00:00
Tim Peters
afb5f94217
Reverting whitespace normalization. test_difflib fails with it -- the
...
test depends on invisible trailing whitespace in .py files. The author will
have to repair that.
2004-08-29 19:33:36 +00:00
Tim Peters
45e77c55ff
Whitespace normalization.
2004-08-29 18:47:31 +00:00
Martin v. Löwis
e064b41f5a
Patch #914575 : difflib side by side diff support, diff.py s/b/s HTML option.
2004-08-29 16:34:40 +00:00
Tim Peters
bcc95cb7cb
Repair typo in docstring.
2004-07-31 00:19:43 +00:00