mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-17 04:18:42 +00:00
Ignore pylint warnings for construct that does not work with Python 2.
This commit is contained in:
parent
8ed1dddbba
commit
92c19c78dc
@ -327,7 +327,7 @@ class APIClient(
|
|||||||
|
|
||||||
if response.raw._fp.chunked:
|
if response.raw._fp.chunked:
|
||||||
if decode:
|
if decode:
|
||||||
for chunk in json_stream.json_stream(self._stream_helper(response, False)):
|
for chunk in json_stream.json_stream(self._stream_helper(response, False)): # pylint: disable=use-yield-from
|
||||||
yield chunk
|
yield chunk
|
||||||
else:
|
else:
|
||||||
reader = response.raw
|
reader = response.raw
|
||||||
@ -390,7 +390,7 @@ class APIClient(
|
|||||||
socket = self._get_raw_response_socket(response)
|
socket = self._get_raw_response_socket(response)
|
||||||
self._disable_socket_timeout(socket)
|
self._disable_socket_timeout(socket)
|
||||||
|
|
||||||
for out in response.iter_content(chunk_size, decode):
|
for out in response.iter_content(chunk_size, decode): # pylint: disable=use-yield-from
|
||||||
yield out
|
yield out
|
||||||
|
|
||||||
def _read_from_socket(self, response, stream, tty=True, demux=False):
|
def _read_from_socket(self, response, stream, tty=True, demux=False):
|
||||||
|
|||||||
@ -225,7 +225,7 @@ class PatternMatcher(object):
|
|||||||
break
|
break
|
||||||
if skip:
|
if skip:
|
||||||
continue
|
continue
|
||||||
for sub in rec_walk(cur):
|
for sub in rec_walk(cur): # pylint: disable=use-yield-from
|
||||||
yield sub
|
yield sub
|
||||||
|
|
||||||
return rec_walk(root)
|
return rec_walk(root)
|
||||||
|
|||||||
@ -13,7 +13,7 @@ from ansible_collections.community.docker.plugins.module_utils.copy import (
|
|||||||
|
|
||||||
|
|
||||||
def _simple_generator(sequence):
|
def _simple_generator(sequence):
|
||||||
for elt in sequence:
|
for elt in sequence: # pylint: disable=use-yield-from
|
||||||
yield elt
|
yield elt
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user