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 @@ def _scan_name(self, i, declstartpos): 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())