sopel-irc / sopel-extras

Broken Sopel modules you might pick up and fix if you want them. Probably faster to just rewrite, though
40 stars 57 forks source link

[twit] Decode HTML entities in tweets #43

Closed dgw closed 5 years ago

dgw commented 10 years ago

No more &lt; instead of <, etc.

Seemed most portable to just include a function to do this, as other methods I found depended on either Python 2.x or 3 stuff.

elad661 commented 10 years ago

This is a whole lot of code to do something simpler. Python is dynamic, you can check which version of python you're running and use the correct function depending on the version.

dgw commented 10 years ago

Pushed an updated commit for this, eliminating the helper function.

I'm new to this whole multi-version thing. Going to try to find someone running Willie on Python 3.x and get this new version tested. Can confirm that it works as expected under Python 2.7.

dgw commented 6 years ago

Just look at this relic from my early days of learning how to use Python. Not saying I'm any better at using the language now, but oh, the noobness! Rebased on top of current extras and once more ready to go.