diff roundup/anypy/ssl_.py @ 6638:e1588ae185dc issue2550923_computed_property

merge from default branch. Fix travis.ci so CI builds don't error out
author John Rouillard <rouilj@ieee.org>
date Thu, 21 Apr 2022 16:54:17 -0400
parents 3e8f2104753b
children 07ce4e4110f5
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/roundup/anypy/ssl_.py	Thu Apr 21 16:54:17 2022 -0400
@@ -0,0 +1,6 @@
+try:
+    # Python 3+
+    from ssl import SSLError
+except (ImportError, AttributeError):
+    # Python 2.5-2.7
+    from socket import sslerror as SSLError

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