diff options
author | Piers Lauder <piers@cs.su.oz.au> | 2005-03-02 09:13:45 (GMT) |
---|---|---|
committer | Piers Lauder <piers@cs.su.oz.au> | 2005-03-02 09:13:45 (GMT) |
commit | 8659d909d39229f93a35d15d4f30960dbafe2370 (patch) | |
tree | 109b17a61180b65bec1f1513924529c94ef55efd /Lib/imaplib.py | |
parent | c8c45c25acf1f7662fc6029967625ed03862b975 (diff) | |
download | cpython-8659d909d39229f93a35d15d4f30960dbafe2370.zip cpython-8659d909d39229f93a35d15d4f30960dbafe2370.tar.gz cpython-8659d909d39229f93a35d15d4f30960dbafe2370.tar.bz2 |
Fix bug in InternalDate regexp that failed to allow leading 0 in day - courtesy of Rimon Barr <rimon.barr@cornell.edu>
Diffstat (limited to 'Lib/imaplib.py')
-rw-r--r-- | Lib/imaplib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/imaplib.py b/Lib/imaplib.py index f353015..6b0576f 100644 --- a/Lib/imaplib.py +++ b/Lib/imaplib.py @@ -81,7 +81,7 @@ Commands = { Continuation = re.compile(r'\+( (?P<data>.*))?') Flags = re.compile(r'.*FLAGS \((?P<flags>[^\)]*)\)') InternalDate = re.compile(r'.*INTERNALDATE "' - r'(?P<day>[ 123][0-9])-(?P<mon>[A-Z][a-z][a-z])-(?P<year>[0-9][0-9][0-9][0-9])' + r'(?P<day>[ 0123][0-9])-(?P<mon>[A-Z][a-z][a-z])-(?P<year>[0-9][0-9][0-9][0-9])' r' (?P<hour>[0-9][0-9]):(?P<min>[0-9][0-9]):(?P<sec>[0-9][0-9])' r' (?P<zonen>[-+])(?P<zoneh>[0-9][0-9])(?P<zonem>[0-9][0-9])' r'"') |