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/poplib.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/poplib.py')
-rw-r--r-- | Lib/poplib.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/poplib.py b/Lib/poplib.py index 58ebb50..c421529 100644 --- a/Lib/poplib.py +++ b/Lib/poplib.py @@ -15,7 +15,7 @@ Based on the J. Myers POP3 draft, Jan. 96 import re, socket -__all__ = ["POP3","error_proto","POP3_SSL"] +__all__ = ["POP3","error_proto"] # Exception raised when an error or invalid response is received: @@ -397,6 +397,7 @@ else: del self.sslobj, self.sock return resp + __all__.append("POP3_SSL") if __name__ == "__main__": import sys |