]> khamidou — GitHub mirrors - imapclient.git/commitdiff
moved re_status out of the way to stop sphinx from seeing it
authorMenno Smits <menno@freshfoo.com>
Tue, 8 Nov 2011 23:02:04 +0000 (23:02 +0000)
committerMenno Smits <menno@freshfoo.com>
Tue, 8 Nov 2011 23:02:04 +0000 (23:02 +0000)
imapclient/imapclient.py

index 6ce84f6379458cde3752ff454d9ec04c1b8d95ca..8d301a8003d1aa83a34201472f6b72893bea4876 100644 (file)
@@ -89,9 +89,6 @@ class IMAPClient(object):
     AbortError = imaplib.IMAP4.abort
     ReadOnlyError = imaplib.IMAP4.readonly
 
-    re_status = re.compile(r'^\s*"?(?P<folder>[^"]+)"?\s+'
-                           r'\((?P<status_items>.*)\)$')
-
     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<folder>[^"]+)"?\s+'
+                        r'\((?P<status_items>.*)\)$')
+