diff roundup/anypy/http_.py @ 6025:106f4384688b

flake8 fixes replace bare except with except (ImportError, AttributeError)
author John Rouillard <rouilj@ieee.org>
date Thu, 02 Jan 2020 21:04:21 -0500
parents a75285092156
children 485a575616bc
line wrap: on
line diff
--- a/roundup/anypy/http_.py	Thu Jan 02 20:59:09 2020 -0500
+++ b/roundup/anypy/http_.py	Thu Jan 02 21:04:21 2020 -0500
@@ -2,7 +2,7 @@
     # Python 3+
     from http import client, server
     server.DEFAULT_ERROR_MESSAGE
-except:
+except (ImportError, AttributeError):
     # Python 2.5-2.7
     import httplib as client
     import BaseHTTPServer as server

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