aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-09-24 20:04:29 +0000
committerFred Drake <fdrake@acm.org>2001-09-24 20:04:29 +0000
commit1cffd5ccff4f4fed205d9257f279f954ee127685 (patch)
treed44ca8abfdc69edef7e03165d05898652f44900d /Lib/markupbase.py
parentNew base class for the SGMLParser and HTMLParser classes from the sgmllib (diff)
downloadcpython-1cffd5ccff4f4fed205d9257f279f954ee127685.tar.gz
cpython-1cffd5ccff4f4fed205d9257f279f954ee127685.tar.bz2
cpython-1cffd5ccff4f4fed205d9257f279f954ee127685.zip
Be consistent about the string module.
Diffstat (limited to 'Lib/markupbase.py')
-rw-r--r--Lib/markupbase.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/markupbase.py b/Lib/markupbase.py
index 0bb7c893b05..2055676fdbb 100644
--- a/Lib/markupbase.py
+++ b/Lib/markupbase.py
@@ -300,7 +300,7 @@ class ParserBase:
name = s.strip()
if (i + len(s)) == n:
return None, -1 # end of buffer
- return name.lower(), m.end()
+ return string.lower(name), m.end()
else:
self.updatepos(declstartpos, i)
self.error("expected name token", self.getpos())