From 126319d5bfc1948c440db86d57dcc3b047a1759e Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 3 Jul 2023 20:11:27 +0200 Subject: fix PyLint warnings --- project/toolset.py | 3 +-- project/version.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/project/toolset.py b/project/toolset.py index 001eefb..35d5192 100644 --- a/project/toolset.py +++ b/project/toolset.py @@ -308,9 +308,8 @@ a list of all supported toolset versions: class Toolset(abc.ABC): - @staticmethod @contextmanager - def b2_args(): + def b2_args(self): # Write the config file, etc. yield [] diff --git a/project/version.py b/project/version.py index 8cff333..a2bdd57 100644 --- a/project/version.py +++ b/project/version.py @@ -1,5 +1,5 @@ try: - import importlib.metadata as metadata + from importlib import metadata except ImportError: import importlib_metadata as metadata -- cgit v1.2.3