mirror of
https://github.com/python/cpython.git
synced 2025-07-30 06:34:15 +00:00
#1651995: fix _convert_ref for non-ASCII characters.
This commit is contained in:
parent
95fafec732
commit
0c7b2c9c19
2 changed files with 10 additions and 1 deletions
|
@ -396,7 +396,7 @@ class SGMLParser(markupbase.ParserBase):
|
|||
n = int(name)
|
||||
except ValueError:
|
||||
return
|
||||
if not 0 <= n <= 255:
|
||||
if not 0 <= n <= 127:
|
||||
return
|
||||
return self.convert_codepoint(n)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue