diff options
author | Thomas Wouters <thomas@python.org> | 2007-08-30 21:54:39 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2007-08-30 21:54:39 (GMT) |
commit | a6900e8d720df0fbbe0da5d26e61bf187f1fa74a (patch) | |
tree | 780be1c533afefe83ea57cee69d267f7d1b70bcf /Lib/imaplib.py | |
parent | dcb3c382ac0977a72ef562759b0ec08e4d8468ad (diff) | |
download | cpython-a6900e8d720df0fbbe0da5d26e61bf187f1fa74a.zip cpython-a6900e8d720df0fbbe0da5d26e61bf187f1fa74a.tar.gz cpython-a6900e8d720df0fbbe0da5d26e61bf187f1fa74a.tar.bz2 |
Don't lie in __all__ attributes when SSL is not available: only add the SSL
classes when they are actually created.
Diffstat (limited to 'Lib/imaplib.py')
-rw-r--r-- | Lib/imaplib.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/imaplib.py b/Lib/imaplib.py index 7e3a046..8ca9358 100644 --- a/Lib/imaplib.py +++ b/Lib/imaplib.py @@ -24,7 +24,7 @@ __version__ = "2.58" import binascii, os, random, re, socket, sys, time -__all__ = ["IMAP4", "IMAP4_SSL", "IMAP4_stream", "Internaldate2tuple", +__all__ = ["IMAP4", "IMAP4_stream", "Internaldate2tuple", "Int2AP", "ParseFlags", "Time2Internaldate"] # Globals @@ -1205,6 +1205,7 @@ else: """ return self.sslobj + __all__.append("IMAP4_SSL") class IMAP4_stream(IMAP4): |