Skip to content

Commit

Permalink
fixup: squash me
Browse files Browse the repository at this point in the history
Co-authored by Exirel

Co-Authored-By: Florian Strzelecki <florian.strzelecki@gmail.com>
  • Loading branch information
dgw and Exirel authored Jul 30, 2019
1 parent cd9feef commit 94da9fd
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions sopel/tools/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ def entity(match):
:return str: the Unicode character corresponding to the given ``match``
string, or a fallback representation if the reference cannot be
resolved to a character
"""
value = match.group(1).lower()
if value.startswith('#x'):
Expand All @@ -118,7 +117,6 @@ def decode(html):
:param str html: the HTML page or snippet to process
:return str: ``html`` with all entity references replaced
"""
return r_entity.sub(entity, html)

Expand All @@ -130,7 +128,6 @@ def quote(string, safe='/'):
:param str string: the string to quote
:param str safe: a list of characters that should not be quoted
:return str: the ``string`` with special characters URL-encoded
"""
if sys.version_info.major < 3:
if isinstance(string, unicode):
Expand Down

0 comments on commit 94da9fd

Please sign in to comment.