Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions xgoogle/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,14 +358,14 @@ def _html_unescape(self, str):
def entity_replacer(m):
entity = m.group(1)
if entity in name2codepoint:
return unichr(name2codepoint[entity])
return chr(name2codepoint[entity])
else:
return m.group(0)

def ascii_replacer(m):
cp = int(m.group(1))
if cp <= 255:
return unichr(cp)
return chr(cp)
else:
return m.group(0)

Expand Down Expand Up @@ -626,14 +626,14 @@ def _html_unescape(self, str):
def entity_replacer(m):
entity = m.group(1)
if entity in name2codepoint:
return unichr(name2codepoint[entity])
return chr(name2codepoint[entity])
else:
return m.group(0)

def ascii_replacer(m):
cp = int(m.group(1))
if cp <= 255:
return unichr(cp)
return chr(cp)
else:
return m.group(0)

Expand Down Expand Up @@ -880,14 +880,14 @@ def _html_unescape(self, str):
def entity_replacer(m):
entity = m.group(1)
if entity in name2codepoint:
return unichr(name2codepoint[entity])
return chr(name2codepoint[entity])
else:
return m.group(0)

def ascii_replacer(m):
cp = int(m.group(1))
if cp <= 255:
return unichr(cp)
return chr(cp)
else:
return m.group(0)

Expand Down Expand Up @@ -1149,14 +1149,14 @@ def _html_unescape(self, str):
def entity_replacer(m):
entity = m.group(1)
if entity in name2codepoint:
return unichr(name2codepoint[entity])
return chr(name2codepoint[entity])
else:
return m.group(0)

def ascii_replacer(m):
cp = int(m.group(1))
if cp <= 255:
return unichr(cp)
return chr(cp)
else:
return m.group(0)

Expand Down