Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Commit ec726bd

Browse files
author
Jon Wayne Parrott
authored
Fix lint issues caught by new pylint (#166)
1 parent 9bea1b1 commit ec726bd

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

google/auth/transport/urllib3.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,16 +178,22 @@ def __init__(self, credentials, http=None,
178178
if http is None:
179179
http = _make_default_http()
180180

181-
self.http = http
182181
self.credentials = credentials
182+
self.http = http
183183
self._refresh_status_codes = refresh_status_codes
184184
self._max_refresh_attempts = max_refresh_attempts
185185
# Request instance used by internal methods (for example,
186186
# credentials.refresh).
187187
self._request = Request(self.http)
188188

189+
super(AuthorizedHttp, self).__init__()
190+
189191
def urlopen(self, method, url, body=None, headers=None, **kwargs):
190192
"""Implementation of urllib3's urlopen."""
193+
# pylint: disable=arguments-differ
194+
# We use kwargs to collect additional args that we don't need to
195+
# introspect here. However, we do explicitly collect the two
196+
# positional arguments.
191197

192198
# Use a kwarg for this instead of an attribute to maintain
193199
# thread-safety.

0 commit comments

Comments
 (0)