annotate roundup/anypy/ssl_.py @ 6591:feab8c878d08

Fix code formatting, add link for Configuring Compression.
author John Rouillard <rouilj@ieee.org>
date Mon, 24 Jan 2022 21:29:44 -0500
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/