From a8f175a976151cb71f377f7b876e63cd5e1a5791 Mon Sep 17 00:00:00 2001 From: chnrxn Date: Tue, 8 Aug 2023 21:17:45 +0800 Subject: [PATCH 1/2] remove direct logging to sys.stderr Signed-off-by: chnrxn --- podman/domain/networks_manager.py | 1 - 1 file changed, 1 deletion(-) diff --git a/podman/domain/networks_manager.py b/podman/domain/networks_manager.py index 484d21c4..42bb77c0 100644 --- a/podman/domain/networks_manager.py +++ b/podman/domain/networks_manager.py @@ -73,7 +73,6 @@ def create(self, name: str, **kwargs) -> Network: headers={"Content-Type": "application/json"}, ) response.raise_for_status() - sys.stderr.write(str(response.json())) return self.prepare_model(attrs=response.json()) def _prepare_ipam(self, data: Dict[str, Any], ipam: Dict[str, Any]): From 74abf6af3ec7511c1ed47fc4779e3e90bbcf9a9c Mon Sep 17 00:00:00 2001 From: chnrxn Date: Tue, 8 Aug 2023 21:44:52 +0800 Subject: [PATCH 2/2] remove unused import Signed-off-by: chnrxn --- podman/domain/networks_manager.py | 1 - 1 file changed, 1 deletion(-) diff --git a/podman/domain/networks_manager.py b/podman/domain/networks_manager.py index 42bb77c0..3d5034be 100644 --- a/podman/domain/networks_manager.py +++ b/podman/domain/networks_manager.py @@ -10,7 +10,6 @@ """ import ipaddress import logging -import sys from contextlib import suppress from typing import Any, Dict, List, Optional