Don't lie in __all__ attributes when SSL is not available: only add the SSL

classes when they are actually created.
This commit is contained in:
Thomas Wouters 2007-08-30 21:54:39 +00:00
parent dcb3c382ac
commit a6900e8d72
4 changed files with 9 additions and 4 deletions

View file

@ -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):