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 1 changed file with 5 additions and 2 deletions.
@@ -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

43 comments on commit f3c99f7

@garyrh
Copy link

@garyrh garyrh commented on f3c99f7 Jan 12, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was his final commit. RIP.

@wong2
Copy link

@wong2 wong2 commented on f3c99f7 Jan 12, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RIP

@bigeagle
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RIP

@tiye
Copy link

@tiye tiye commented on f3c99f7 Jan 12, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RIP

@ryekee
Copy link

@ryekee ryekee commented on f3c99f7 Jan 12, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RIP

@sergiotapia
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RIP

@horiacristescu
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@kuozo
Copy link

@kuozo kuozo commented on f3c99f7 Jan 13, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RIP

@wang0109
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RIP

@manuelbua
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RIP

@kachick
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RIP

@kadimisetty
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@luigibozzo
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RIP

@jufemaiz
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RIP.

@jnarvaezp
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RIP you ROCKS!!!!!!

@ChrisKozak
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RIP

@ish1301
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RIP

@offlinehacker
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for all great work you have done, RIP!

@pwfisher
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RIP

@necsoft
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:( we miss you

@seifolahi
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@chatbaz
Copy link

@chatbaz chatbaz commented on f3c99f7 Apr 5, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GOD bless him :(

@arkokoley
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aaron Swartz, u rocked!! RIP.

@vchakoshy
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RIP

@nwalter08
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RIP

@bondarewicz
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RIP

@CamiloMM
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We miss you :(

@syllogismos
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RIP

@RussellBradley
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RIP

@everbgs
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RIP

@WestleyArgentum
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We won't forget. RIP.

@joshhartigan
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RIP

@replete
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RIP. What an inspiration you are.

@bohrasd
Copy link

@bohrasd bohrasd commented on f3c99f7 Mar 14, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RIP. This is beyond words.

@splch
Copy link

@splch splch commented on f3c99f7 Dec 3, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@pipboy96
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for everything. RIP.

@LauretIvan22
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@JCharante
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy Belated Birthday

@geongeorge
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy Birthday

@petrspelos
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RIP. We won't forget.

@fzn0x
Copy link

@fzn0x fzn0x commented on f3c99f7 Jan 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RIP. Thanks for everything!

@i8g9
Copy link

@i8g9 i8g9 commented on f3c99f7 Apr 20, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RIP mate, Thanks for being an inspiration.

@Lonor
Copy link

@Lonor Lonor commented on f3c99f7 Aug 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RIP. Thank you for everything you've done to the Open World Wide Web.
快十年了。

Please sign in to comment.