Skip to content
Permalink
Browse files

Merge pull request #1 from ddohler/master

Disable automatic junk detection on Python >=2.7.1
  • Loading branch information
aaronsw committed Jan 6, 2013
2 parents 8421ee0 + 20e7c28 commit f3c99f794a7f83f8e1645d4e58a89948a1939e65
Showing with 5 additions and 2 deletions.
  1. +5 −2 diff.py
@@ -1,4 +1,4 @@
#!/usr/bin/python2.2
#!/usr/bin/python
"""HTML Diff: http://www.aaronsw.com/2002/diff
Rough code, badly documented. Send me comments and patches."""

@@ -15,7 +15,10 @@ def textDiff(a, b):

out = []
a, b = html2list(a), html2list(b)
s = difflib.SequenceMatcher(None, a, b)
try: # autojunk can cause malformed HTML, but also speeds up processing.
s = difflib.SequenceMatcher(None, a, b, autojunk=False)
except TypeError:
s = difflib.SequenceMatcher(None, a, b)
for e in s.get_opcodes():
if e[0] == "replace":
# @@ need to do something more complicated here

39 comments on commit f3c99f7

@garyrh

This comment has been minimized.

Copy link

@garyrh garyrh replied Jan 12, 2013

This was his final commit. RIP.

@wong2

This comment has been minimized.

Copy link

@wong2 wong2 replied Jan 12, 2013

RIP

@bigeagle

This comment has been minimized.

Copy link

@bigeagle bigeagle replied Jan 12, 2013

RIP

@jiyinyiyong

This comment has been minimized.

Copy link

@jiyinyiyong jiyinyiyong replied Jan 12, 2013

RIP

@ryekee

This comment has been minimized.

Copy link

@ryekee ryekee replied Jan 12, 2013

RIP

@sergiotapia

This comment has been minimized.

Copy link

@sergiotapia sergiotapia replied Jan 12, 2013

RIP

@horiacristescu

This comment has been minimized.

Copy link

@horiacristescu horiacristescu replied Jan 12, 2013

I was a fan. I admired his JSTOR civil protest. RIP.

@kuozo

This comment has been minimized.

Copy link

@kuozo kuozo replied Jan 13, 2013

RIP

@wang0109

This comment has been minimized.

Copy link

@wang0109 wang0109 replied Jan 13, 2013

RIP

@manuelbua

This comment has been minimized.

Copy link

@manuelbua manuelbua replied Jan 13, 2013

RIP

@kachick

This comment has been minimized.

Copy link

@kachick kachick replied Jan 14, 2013

RIP

@kadimisetty

This comment has been minimized.

Copy link

@kadimisetty kadimisetty replied Jan 15, 2013

@luigibozzo

This comment has been minimized.

Copy link

@luigibozzo luigibozzo replied Jan 15, 2013

RIP

@jufemaiz

This comment has been minimized.

Copy link

@jufemaiz jufemaiz replied Jan 17, 2013

RIP.

@jnarvaezp

This comment has been minimized.

Copy link

@jnarvaezp jnarvaezp replied Jan 17, 2013

RIP you ROCKS!!!!!!

@ChrisKozak

This comment has been minimized.

Copy link

@ChrisKozak ChrisKozak replied Jan 19, 2013

RIP

@ish1301

This comment has been minimized.

Copy link

@ish1301 ish1301 replied Jan 23, 2013

RIP

@offlinehacker

This comment has been minimized.

Copy link

@offlinehacker offlinehacker replied Feb 6, 2013

Thanks for all great work you have done, RIP!

@pwfisher

This comment has been minimized.

Copy link

@pwfisher pwfisher replied Mar 17, 2013

RIP

@necsoft

This comment has been minimized.

Copy link

@necsoft necsoft replied Mar 19, 2013

:( we miss you

@seifolahi

This comment has been minimized.

Copy link

@seifolahi seifolahi replied Apr 1, 2013

روحش شاد و یادش گرامی
RIP

@chatbaz

This comment has been minimized.

Copy link

@chatbaz chatbaz replied Apr 5, 2013

GOD bless him :(

@arkokoley

This comment has been minimized.

Copy link

@arkokoley arkokoley replied Apr 10, 2013

Aaron Swartz, u rocked!! RIP.

@vchakoshy

This comment has been minimized.

Copy link

@vchakoshy vchakoshy replied Apr 10, 2013

RIP

@nwalter08

This comment has been minimized.

Copy link

@nwalter08 nwalter08 replied Jun 6, 2013

RIP

@bondarewicz

This comment has been minimized.

Copy link

@bondarewicz bondarewicz replied Jun 7, 2013

RIP

@CamiloMM

This comment has been minimized.

Copy link

@CamiloMM CamiloMM replied Jun 24, 2013

We miss you :(

@syllogismos

This comment has been minimized.

Copy link

@syllogismos syllogismos replied Aug 20, 2013

RIP

@RussellBradley

This comment has been minimized.

Copy link

@RussellBradley RussellBradley replied Jan 12, 2014

RIP

@everbgs

This comment has been minimized.

Copy link

@everbgs everbgs replied Aug 19, 2014

RIP

@WestleyArgentum

This comment has been minimized.

Copy link

@WestleyArgentum WestleyArgentum replied Aug 23, 2014

We won't forget. RIP.

@joshhartigan

This comment has been minimized.

Copy link

@joshhartigan joshhartigan replied Oct 28, 2014

RIP

@replete

This comment has been minimized.

Copy link

@replete replete replied Jul 18, 2015

RIP. What an inspiration you are.

@bohrasd

This comment has been minimized.

Copy link

@bohrasd bohrasd replied Mar 14, 2017

RIP. This is beyond words.

@splch

This comment has been minimized.

Copy link

@splch splch replied Dec 3, 2017

rip. thank you for your fight to open source everything <3

@pipboy96

This comment has been minimized.

Copy link

@pipboy96 pipboy96 replied Feb 18, 2019

Thanks for everything. RIP.

@LauretIvan22

This comment has been minimized.

Copy link

@LauretIvan22 LauretIvan22 replied Sep 12, 2019

<3 Thanks for Everything you did, RIP, Paix a ton âme.

@JCharante

This comment has been minimized.

Copy link

@JCharante JCharante replied Nov 10, 2019

Happy Belated Birthday

@geongeorge

This comment has been minimized.

Copy link

@geongeorge geongeorge replied Nov 8, 2020

Happy Birthday

Please sign in to comment.
You can’t perform that action at this time.