Home | History | Annotate | Download | only in email

Lines Matching refs:re

24 import re
29 NLCRE = re.compile('\r\n|\r|\n')
30 NLCRE_bol = re.compile('(\r\n|\r|\n)')
31 NLCRE_eol = re.compile('(\r\n|\r|\n)\Z')
32 NLCRE_crack = re.compile('(\r\n|\r|\n)')
35 headerRE = re.compile(r'^(From |[\041-\071\073-\176]{1,}:|[\t ])')
87 # We're at the false EOF. But push the last line back first.
103 # The *ahem* interesting behaviour of re.split when supplied grouping
105 # data after the final RE. In the case of a NL/CR terminated string,
114 # re-attaching the newlines.
215 # Done with the headers, so parse them and figure out what we're
247 # We need to pop the EOF matcher in order to tell if we're at
252 # EOF. We want to see if we're at the end of this subpart, so
254 # if we're at this subpart's EOF.
269 # Not at EOF so this is a line we're going to need.
303 boundaryre = re.compile(
304 '(?P<sep>' + re.escape(separator) +
318 # If we're looking at the end boundary, we're done with
382 # happen if we're in a nested multipart.
388 # We've seen either the EOF or the end boundary. If we're still