mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-07-29 11:55:04 +00:00
Python code modernization, 8/n (#1179)
* Use to_text instead of to_native. * Remove no longer needed pylint ignores. * Remove another pylint ignore. * Remove no longer needed ignore. * Address redefined-outer-name. * Address consider-using-with.
This commit is contained in:
@@ -652,6 +652,8 @@ class APIClient(_Session):
|
||||
|
||||
def get_adapter(self, url: str) -> BaseAdapter:
|
||||
try:
|
||||
# pylint finds our Session stub instead of requests.Session:
|
||||
# pylint: disable-next=no-member
|
||||
return super().get_adapter(url)
|
||||
except _InvalidSchema as e:
|
||||
if self._custom_adapter:
|
||||
|
||||
Reference in New Issue
Block a user