File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ def pretty_byte_count(num):
105
105
106
106
107
107
# Regular expressions for parsing
108
- MSGID_RE = re .compile ("^Message\ -Id\ : (.+)" , re .IGNORECASE + re .MULTILINE )
108
+ MSGID_RE = re .compile (r "^Message-Id: (.+)" , re .IGNORECASE + re .MULTILINE )
109
109
BLANKS_RE = re .compile (r'\s+' , re .MULTILINE )
110
110
111
111
# Constants
@@ -340,7 +340,7 @@ def parse_paren_list(row):
340
340
result = []
341
341
342
342
# NOTE: RFC3501 doesn't fully define the format of name attributes
343
- name_attrib_re = re .compile ("^\s*(\\ \\ [a-zA-Z0-9_]+)\s*" )
343
+ name_attrib_re = re .compile (r "^\s*(\\[a-zA-Z0-9_]+)\s*" )
344
344
345
345
# eat name attributes until ending paren
346
346
while row [0 ] != ')' :
@@ -367,7 +367,7 @@ def parse_paren_list(row):
367
367
368
368
def parse_string_list (row ):
369
369
"""Parses the quoted and unquoted strings at the end of a LIST response"""
370
- slist = re .compile ('\s*(?: "([^"]+)") \s*|\s*(\S+)\s*' ).split (row )
370
+ slist = re .compile (r '\s*"([^"]+)"\s*|\s*(\S+)\s*' ).split (row )
371
371
return [s for s in slist if s ]
372
372
373
373
You can’t perform that action at this time.
0 commit comments