]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Merge of the folding-reimpl-branch. Specific changes,
authorBarry Warsaw <barry@python.org>
Thu, 6 Mar 2003 05:25:35 +0000 (05:25 +0000)
committerBarry Warsaw <barry@python.org>
Thu, 6 Mar 2003 05:25:35 +0000 (05:25 +0000)
Rename a constant.

Lib/email/Parser.py

index 8e0ac44977335346d4e6057e32fe4c02909da770..09fac4552f9379f8a32d57dd74329527c0478037 100644 (file)
@@ -20,7 +20,7 @@ except NameError:
     True = 1
     False = 0
 
-nlcre = re.compile('\r\n|\r|\n')
+NLCRE = re.compile('\r\n|\r|\n')
 
 
 \f
@@ -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