From 08563ef860ff6273ead32f9c7117ddbc915f8cc3 Mon Sep 17 00:00:00 2001 From: Arif Ali Date: Fri, 19 Apr 2024 19:40:17 +0100 Subject: [pylint] Fix deprecated warnings * W4903: deprecated-argument * W4902: deprecated-method Signed-off-by: Arif Ali --- sos/cleaner/archives/__init__.py | 1 + sos/collector/clusters/ocp.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sos/cleaner/archives/__init__.py b/sos/cleaner/archives/__init__.py index 86aa8e04..f7c5eb58 100644 --- a/sos/cleaner/archives/__init__.py +++ b/sos/cleaner/archives/__init__.py @@ -292,6 +292,7 @@ class SoSObfuscationArchive(): else: shutil.rmtree(name) self.log_debug("Removing %s" % self.extracted_path) + # pylint: disable-next=deprecated-argument shutil.rmtree(self.extracted_path, onerror=force_delete_file) def extract_self(self): diff --git a/sos/collector/clusters/ocp.py b/sos/collector/clusters/ocp.py index db47cdad..b1ab95c3 100644 --- a/sos/collector/clusters/ocp.py +++ b/sos/collector/clusters/ocp.py @@ -243,7 +243,7 @@ class ocp(Cluster): return 'oc' self.log_info("Local installation of 'oc' not found or is not " "correctly configured. Will use ControlPersist.") - self.ui_log.warn( + self.ui_log.warning( "Preferred transport 'oc' not available, will fallback to SSH." ) if not self.opts.batch: -- cgit