1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-06-19 19:50:31 -04:00
ports/devel/py-xcaplib/files/patch-xcaplib-httpclient.py
2020-02-11 17:56:46 +00:00

11 lines
549 B
Python

--- xcaplib/httpclient.py.orig 2016-01-12 11:22:06 UTC
+++ xcaplib/httpclient.py
@@ -164,7 +164,7 @@ class HTTPClient(object):
return HTTPResponse.from_addinfourl(response)
else:
raise RuntimeError('urllib2.open returned %r' % response)
- except urllib2.HTTPError, e:
+ except urllib2.HTTPError as e:
# Workaround for bug in urllib2 which doesn't reset the retry count
# when a negative, but different that 401 or 407, response is
# received. -Luci