mirror of https://github.com/python/cpython.git
Be consistent about the string module.
This commit is contained in:
parent
68f8a8061d
commit
1cffd5ccff
|
@ -300,7 +300,7 @@ def _scan_name(self, i, declstartpos):
|
||||||
name = s.strip()
|
name = s.strip()
|
||||||
if (i + len(s)) == n:
|
if (i + len(s)) == n:
|
||||||
return None, -1 # end of buffer
|
return None, -1 # end of buffer
|
||||||
return name.lower(), m.end()
|
return string.lower(name), m.end()
|
||||||
else:
|
else:
|
||||||
self.updatepos(declstartpos, i)
|
self.updatepos(declstartpos, i)
|
||||||
self.error("expected name token", self.getpos())
|
self.error("expected name token", self.getpos())
|
||||||
|
|
Loading…
Reference in New Issue