Romuald Brunet <[email protected]> added the comment:
My use case:
try:
s = SMTP('myhost')
s.do_some_sending()
finaly:
if s is not None and s.sock is not None:
s.quit()
But I realize just now that in that case, if s was initialized correctly, its
sock was inevitably set
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue32680>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com