aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/project
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-07-03 20:11:27 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-07-03 20:11:27 +0200
commit126319d5bfc1948c440db86d57dcc3b047a1759e (patch)
tree82a50142fa9c68851542cb8761c03edf4accbdd1 /project
parentcommon.cmake: enable warnings for Clang as well (diff)
downloadcmake-common-126319d5bfc1948c440db86d57dcc3b047a1759e.tar.gz
cmake-common-126319d5bfc1948c440db86d57dcc3b047a1759e.zip
fix PyLint warnings
Diffstat (limited to '')
-rw-r--r--project/toolset.py3
-rw-r--r--project/version.py2
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