Mercurial > p > roundup > code
diff roundup/anypy/cookie_.py @ 6024:4cb860c33b37
flake8 replace bare except with except ImportError.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Thu, 02 Jan 2020 20:59:09 -0500 |
| parents | dfd0bcc947e5 |
| children | 07ce4e4110f5 |
line wrap: on
line diff
--- a/roundup/anypy/cookie_.py Thu Jan 02 20:58:25 2020 -0500 +++ b/roundup/anypy/cookie_.py Thu Jan 02 20:59:09 2020 -0500 @@ -4,7 +4,7 @@ from http import cookies as Cookie from http.cookies import CookieError, BaseCookie, SimpleCookie from http.cookies import _getdate as get_cookie_date -except: +except ImportError: # Python 2.5-2.7 from Cookie import CookieError, BaseCookie, SimpleCookie from Cookie import _getdate as get_cookie_date
