From f8ec1c8a007e85cd03bb0574115d4b797e0ef9f3 Mon Sep 17 00:00:00 2001 From: Pieter De Gendt Date: Sun, 29 Sep 2024 15:30:31 +0200 Subject: [PATCH] scripts: west_commands: completion: Remove deprecated west.log The global state west.log is deprecated, replace with WestCommand logging. Signed-off-by: Pieter De Gendt --- scripts/west_commands/completion.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/west_commands/completion.py b/scripts/west_commands/completion.py index 470d9a8b5f8..11b9aa44653 100644 --- a/scripts/west_commands/completion.py +++ b/scripts/west_commands/completion.py @@ -5,7 +5,6 @@ import argparse import os -from west import log from west.commands import WestCommand # Relative to the folder where this script lives @@ -78,4 +77,4 @@ class Completion(WestCommand): with open(cf, 'r') as f: print(f.read()) except FileNotFoundError as e: - log.die('Unable to find completion file: {}'.format(e)) + self.die('Unable to find completion file: {}'.format(e))