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 <pieter.degendt@basalte.be>
This commit is contained in:
parent
a74c9be593
commit
f8ec1c8a00
1 changed files with 1 additions and 2 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue