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(
172
172
all : Optional [bool ] = False , # pylint: disable=redefined-builtin
173
173
external : Optional [bool ] = False ,
174
174
filters : Optional [Mapping [str , Any ]] = None ,
175
- << << << < HEAD
176
175
) -> dict [Literal ["ImagesDeleted" , "SpaceReclaimed" ], Any ]:
177
- == == == =
178
- ) -> Dict [Literal ["ImagesDeleted" , "SpaceReclaimed" ], Any ]:
179
- >> >> >> > cec6b18 (Add all , external , and label to Image .prune ())
180
176
"""Delete unused images.
181
177
182
178
The Untagged keys will always be "".
@@ -334,8 +330,11 @@ def pull(
334
330
auth_config (Mapping[str, str]) – Override the credentials that are found in the
335
331
config for this request. auth_config should contain the username and password
336
332
keys to be valid.
333
+ <<<<<<< HEAD
337
334
compatMode (bool) – Return the same JSON payload as the Docker-compat endpoint.
338
335
Default: True.
336
+ =======
337
+ >>>>>>> b8f28e2 (Implement "decode" parameter in pull())
339
338
decode (bool) – Decode the JSON data from the server into dicts.
340
339
Only applies with ``stream=True``
341
340
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):
14
14
instead of byte streams.
15
15
"""
16
16
for data in stream :
17
- _data = data
18
17
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
21
20
22
21
23
22
def json_splitter (buffer ):
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ def __init__(
143
143
144
144
class InvalidArgument (PodmanError ):
145
145
"""Parameter to method/function was not valid."""
146
-
146
+
147
147
148
148
class PodmanConnectionError (PodmanError ):
149
149
"""Exception raised when connection to Podman service fails using environment configuration."""
@@ -201,6 +201,7 @@ def __str__(self) -> str:
201
201
202
202
203
203
class StreamParseError (RuntimeError ):
204
+ < << << << HEAD
204
205
"""Exception raised when parsing a stream fails."""
205
206
206
207
def __init__ (self , reason : str ):
@@ -210,4 +211,7 @@ def __init__(self, reason: str):
210
211
reason: Description of the parsing error.
211
212
"""
212
213
super ().__init__ (reason )
214
+ == == == =
215
+ def __init__ (self , reason ):
216
+ >> >> >> > b8f28e2 (Implement "decode" parameter in pull ())
213
217
self .msg = reason
You can’t perform that action at this time.
0 commit comments