summaryrefslogtreecommitdiff
path: root/Lib/sgmllib.py
diff options
context:
space:
mode:
authorMatthias Klose <doko@ubuntu.com>2009-04-04 12:51:52 +0000
committerMatthias Klose <doko@ubuntu.com>2009-04-04 12:51:52 +0000
commitee13a2ecf4410183cfecc256bcf9df3a2321659a (patch)
tree7404a1097144be75cba5ebf1a4cd2de491ffe39c /Lib/sgmllib.py
parentc9da90a74e0df57c8562723139d30adf78faac6f (diff)
downloadcpython-git-ee13a2ecf4410183cfecc256bcf9df3a2321659a.tar.gz
Merged revisions 70906 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r70906 | georg.brandl | 2009-04-01 00:11:53 +0200 (Mi, 01 Apr 2009) | 1 line #1651995: fix _convert_ref for non-ASCII characters. ........
Diffstat (limited to 'Lib/sgmllib.py')
-rw-r--r--Lib/sgmllib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/sgmllib.py b/Lib/sgmllib.py
index e5fbd32fcc..104b25f2a0 100644
--- a/Lib/sgmllib.py
+++ b/Lib/sgmllib.py
@@ -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)