diff --git a/Lib/imaplib.py b/Lib/imaplib.py index 9f82e2b3a9c..6a6886197c8 100644 --- a/Lib/imaplib.py +++ b/Lib/imaplib.py @@ -83,7 +83,7 @@ r' (?P[-+])(?P[0-9][0-9])(?P[0-9][0-9])' r'"') Literal = re.compile(r'.*{(?P\d+)}$') -MapCRLF = re.compile(r'(?:\r\n|\n|\r(?!\n))') +MapCRLF = re.compile(r'\r\n|\r|\n') Response_code = re.compile(r'\[(?P[A-Z-]+)( (?P[^\]]*))?\]') Untagged_response = re.compile(r'\* (?P[A-Z-]+)( (?P.*))?') Untagged_status = re.compile(r'\* (?P\d+) (?P[A-Z-]+)( (?P.*))?')