[elbe-devel] [PATCH 22/25] pylint: toolchain: move class attributes to the classes using them
Torben Hohn
torben.hohn at linutronix.de
Wed Aug 22 10:42:23 CEST 2018
pylint complains:
------------------------------------------------------------------------------------------------------------------------------
elbepack/toolchain.py:31: [E1101(no-member), Toolchain.get_files_for_pkg] Instance of 'Toolchain' has no 'pkg_libs' member
elbepack/toolchain.py:35: [E1101(no-member), Toolchain.get_files_for_pkg] Instance of 'Toolchain' has no 'gcc_libpath' member
------------------------------------------------------------------------------------------------------------------------------
These attributes are generic enough to get initialized in
the baseclass.
Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
elbepack/toolchain.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/elbepack/toolchain.py b/elbepack/toolchain.py
index 18fa2507..c5e631ac 100644
--- a/elbepack/toolchain.py
+++ b/elbepack/toolchain.py
@@ -12,6 +12,10 @@ arch2triple = {"armhf": "arm-linux-gnueabihf", "armel": "arm-linux-gnueabi"}
class Toolchain(object):
+ libc_path = "${triple}/libc"
+ gcc_libpath = "${triple}/lib"
+ pkg_libs = {}
+
def __init__(self, path, arch, triple=None):
self.path = path
self.arch = arch
@@ -39,8 +43,6 @@ class Toolchain(object):
class LinaroToolchain(Toolchain):
- libc_path = "${triple}/libc"
- gcc_libpath = "${triple}/lib"
pkg_libs = {"libasan0": ["libasan.so.*"],
"libatomic1": ["libatomic.so.*"],
"libgcc1": ["libgcc_s.so.*"],
--
2.11.0
More information about the elbe-devel
mailing list