From 13fe7e020ad7de6398e9a0e56d9b763c03363416 Mon Sep 17 00:00:00 2001 From: Menno Smits Date: Tue, 8 Nov 2011 23:02:04 +0000 Subject: [PATCH] moved re_status out of the way to stop sphinx from seeing it --- imapclient/imapclient.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/imapclient/imapclient.py b/imapclient/imapclient.py index 6ce84f6..8d301a8 100644 --- a/imapclient/imapclient.py +++ b/imapclient/imapclient.py @@ -89,9 +89,6 @@ class IMAPClient(object): AbortError = imaplib.IMAP4.abort ReadOnlyError = imaplib.IMAP4.readonly - re_status = re.compile(r'^\s*"?(?P[^"]+)"?\s+' - r'\((?P.*)\)$') - def __init__(self, host, port=None, use_uid=True, ssl=False): if port is None: port = ssl and 993 or 143 @@ -432,7 +429,7 @@ class IMAPClient(object): typ, data = self._imap.status(self._encode_folder_name(folder), what_) self._checkok('status', typ, data) - match = self.re_status.match(data[0]) + match = _re_status.match(data[0]) if not match: raise self.Error('Could not get the folder status') @@ -901,3 +898,6 @@ def _parse_untagged_response(text): return tuple(text.split(' ', 1)) return parse_response([text]) +_re_status = re.compile(r'^\s*"?(?P[^"]+)"?\s+' + r'\((?P.*)\)$') + -- 2.43.0