summaryrefslogtreecommitdiffstats
path: root/Lib/email/Parser.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2003-03-06 05:25:35 (GMT)
committerBarry Warsaw <barry@python.org>2003-03-06 05:25:35 (GMT)
commit0e4570bcb0cc57f2854e3a43c65d29483442c4d2 (patch)
tree4d7fc109e4bba068c17bbae937997066d9f143ad /Lib/email/Parser.py
parent5c2f1536d0aa44bbbafbd38431f9efaf5a5ab0c3 (diff)
downloadcpython-0e4570bcb0cc57f2854e3a43c65d29483442c4d2.zip
cpython-0e4570bcb0cc57f2854e3a43c65d29483442c4d2.tar.gz
cpython-0e4570bcb0cc57f2854e3a43c65d29483442c4d2.tar.bz2
Merge of the folding-reimpl-branch. Specific changes,
Rename a constant.
Diffstat (limited to 'Lib/email/Parser.py')
-rw-r--r--Lib/email/Parser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/email/Parser.py b/Lib/email/Parser.py
index 8e0ac44..09fac45 100644
--- a/Lib/email/Parser.py
+++ b/Lib/email/Parser.py
@@ -20,7 +20,7 @@ except NameError:
True = 1
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]
# Find out what kind of line endings we're using
start += len(mo.group('sep')) + len(mo.group('ws'))
- mo = nlcre.search(payload, start)
+ mo = NLCRE.search(payload, start)
if mo:
start += len(mo.group(0))
# We create a compiled regexp first because we need to be able to