annotate roundup/anypy/ssl_.py @ 6975:fe4a6ba98bfe

flake8 - remove unused imports, unused vars, whitespace fixes
author John Rouillard <rouilj@ieee.org>
date Wed, 14 Sep 2022 15:59:59 -0400
parents 3e8f2104753b
children 07ce4e4110f5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6582
3e8f2104753b issue2551186 - replace socket.sslerror in mailgw.py.
John Rouillard <rouilj@ieee.org>
parents:
diff changeset
1 try:
3e8f2104753b issue2551186 - replace socket.sslerror in mailgw.py.
John Rouillard <rouilj@ieee.org>
parents:
diff changeset
2 # Python 3+
3e8f2104753b issue2551186 - replace socket.sslerror in mailgw.py.
John Rouillard <rouilj@ieee.org>
parents:
diff changeset
3 from ssl import SSLError
3e8f2104753b issue2551186 - replace socket.sslerror in mailgw.py.
John Rouillard <rouilj@ieee.org>
parents:
diff changeset
4 except (ImportError, AttributeError):
3e8f2104753b issue2551186 - replace socket.sslerror in mailgw.py.
John Rouillard <rouilj@ieee.org>
parents:
diff changeset
5 # Python 2.5-2.7
3e8f2104753b issue2551186 - replace socket.sslerror in mailgw.py.
John Rouillard <rouilj@ieee.org>
parents:
diff changeset
6 from socket import sslerror as SSLError

Roundup Issue Tracker: http://roundup-tracker.org/