File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed
Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -172,11 +172,7 @@ def prune(
172172 all : Optional [bool ] = False , # pylint: disable=redefined-builtin
173173 external : Optional [bool ] = False ,
174174 filters : Optional [Mapping [str , Any ]] = None ,
175- << << << < HEAD
176175 ) -> dict [Literal ["ImagesDeleted" , "SpaceReclaimed" ], Any ]:
177- == == == =
178- ) -> Dict [Literal ["ImagesDeleted" , "SpaceReclaimed" ], Any ]:
179- >> >> >> > cec6b18 (Add all , external , and label to Image .prune ())
180176 """Delete unused images.
181177
182178 The Untagged keys will always be "".
@@ -334,8 +330,11 @@ def pull(
334330 auth_config (Mapping[str, str]) – Override the credentials that are found in the
335331 config for this request. auth_config should contain the username and password
336332 keys to be valid.
333+ <<<<<<< HEAD
337334 compatMode (bool) – Return the same JSON payload as the Docker-compat endpoint.
338335 Default: True.
336+ =======
337+ >>>>>>> b8f28e2 (Implement "decode" parameter in pull())
339338 decode (bool) – Decode the JSON data from the server into dicts.
340339 Only applies with ``stream=True``
341340 platform (str) – Platform in the format os[/arch[/variant]]
Original file line number Diff line number Diff line change @@ -14,10 +14,9 @@ def stream_as_text(stream):
1414 instead of byte streams.
1515 """
1616 for data in stream :
17- _data = data
1817 if not isinstance (data , str ):
19- _data = data .decode ('utf-8' , 'replace' )
20- yield _data
18+ data = data .decode ('utf-8' , 'replace' )
19+ yield data
2120
2221
2322def json_splitter (buffer ):
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ def __init__(
143143
144144class InvalidArgument (PodmanError ):
145145 """Parameter to method/function was not valid."""
146-
146+
147147
148148class PodmanConnectionError (PodmanError ):
149149 """Exception raised when connection to Podman service fails using environment configuration."""
@@ -201,6 +201,7 @@ def __str__(self) -> str:
201201
202202
203203class StreamParseError (RuntimeError ):
204+ < << << << HEAD
204205 """Exception raised when parsing a stream fails."""
205206
206207 def __init__ (self , reason : str ):
@@ -210,4 +211,7 @@ def __init__(self, reason: str):
210211 reason: Description of the parsing error.
211212 """
212213 super ().__init__ (reason )
214+ == == == =
215+ def __init__ (self , reason ):
216+ >> >> >> > b8f28e2 (Implement "decode" parameter in pull ())
213217 self .msg = reason
You can’t perform that action at this time.
0 commit comments