mirror of https://github.com/python/cpython
Merge of the folding-reimpl-branch. Specific changes,
Rename a constant.
This commit is contained in:
parent
5c2f1536d0
commit
0e4570bcb0
|
@ -20,7 +20,7 @@ except NameError:
|
||||||
True = 1
|
True = 1
|
||||||
False = 0
|
False = 0
|
||||||
|
|
||||||
nlcre = re.compile('\r\n|\r|\n')
|
NLCRE = re.compile('\r\n|\r|\n')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -176,7 +176,7 @@ class Parser:
|
||||||
preamble = payload[0:start]
|
preamble = payload[0:start]
|
||||||
# Find out what kind of line endings we're using
|
# Find out what kind of line endings we're using
|
||||||
start += len(mo.group('sep')) + len(mo.group('ws'))
|
start += len(mo.group('sep')) + len(mo.group('ws'))
|
||||||
mo = nlcre.search(payload, start)
|
mo = NLCRE.search(payload, start)
|
||||||
if mo:
|
if mo:
|
||||||
start += len(mo.group(0))
|
start += len(mo.group(0))
|
||||||
# We create a compiled regexp first because we need to be able to
|
# We create a compiled regexp first because we need to be able to
|
||||||
|
|
Loading…
Reference in New Issue