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

35 comments on commit f3c99f7

@garyrh

This comment has been minimized.

garyrh replied Jan 12, 2013

This was his final commit. RIP.

@wong2

This comment has been minimized.

wong2 replied Jan 12, 2013

RIP

@bigeagle

This comment has been minimized.

bigeagle replied Jan 12, 2013

RIP

@jiyinyiyong

This comment has been minimized.

jiyinyiyong replied Jan 12, 2013

RIP

@ryekee

This comment has been minimized.

ryekee replied Jan 12, 2013

RIP

@sergiotapia

This comment has been minimized.

sergiotapia replied Jan 12, 2013

RIP

@horiacristescu

This comment has been minimized.

horiacristescu replied Jan 12, 2013

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

@klnchu

This comment has been minimized.

klnchu replied Jan 13, 2013

RIP

@wang0109

This comment has been minimized.

wang0109 replied Jan 13, 2013

RIP

@manuelbua

This comment has been minimized.

manuelbua replied Jan 13, 2013

RIP

@kachick

This comment has been minimized.

kachick replied Jan 14, 2013

RIP

@kadimisetty

This comment has been minimized.

kadimisetty replied Jan 15, 2013

@luigibozzo

This comment has been minimized.

luigibozzo replied Jan 15, 2013

RIP

@jufemaiz

This comment has been minimized.

jufemaiz replied Jan 17, 2013

RIP.

@jnarvaezp

This comment has been minimized.

jnarvaezp replied Jan 17, 2013

RIP you ROCKS!!!!!!

@ChrisKozak

This comment has been minimized.

ChrisKozak replied Jan 19, 2013

RIP

@ish1301

This comment has been minimized.

ish1301 replied Jan 23, 2013

RIP

@offlinehacker

This comment has been minimized.

offlinehacker replied Feb 6, 2013

Thanks for all great work you have done, RIP!

@pwfisher

This comment has been minimized.

pwfisher replied Mar 17, 2013

RIP

@necsoft

This comment has been minimized.

necsoft replied Mar 19, 2013

:( we miss you

@seifolahi

This comment has been minimized.

seifolahi replied Apr 1, 2013

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

@chatbaz

This comment has been minimized.

chatbaz replied Apr 5, 2013

GOD bless him :(

@arkokoley

This comment has been minimized.

arkokoley replied Apr 10, 2013

Aaron Swartz, u rocked!! RIP.

@vchakoshy

This comment has been minimized.

vchakoshy replied Apr 10, 2013

RIP

@nwalter08

This comment has been minimized.

nwalter08 replied Jun 6, 2013

RIP

@bondarewicz

This comment has been minimized.

bondarewicz replied Jun 7, 2013

RIP

@CamiloMM

This comment has been minimized.

CamiloMM replied Jun 24, 2013

We miss you :(

@syllogismos

This comment has been minimized.

syllogismos replied Aug 20, 2013

RIP

@RussellBradley

This comment has been minimized.

RussellBradley replied Jan 12, 2014

RIP

@everbgs

This comment has been minimized.

everbgs replied Aug 19, 2014

RIP

@WestleyArgentum

This comment has been minimized.

WestleyArgentum replied Aug 23, 2014

We won't forget. RIP.

@joshhartigan

This comment has been minimized.

joshhartigan replied Oct 28, 2014

RIP

@replete

This comment has been minimized.

replete replied Jul 18, 2015

RIP. What an inspiration you are.

@bohrasd

This comment has been minimized.

bohrasd replied Mar 14, 2017

RIP. This is beyond words.

@spencerchurchill

This comment has been minimized.

spencerchurchill replied Dec 3, 2017

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

Please sign in to comment.