Fix objmgr using pycodestyle (pep8) rules
Create a setup.cfg file which is used by pycodestyle
(formerly pep8) to override defaults. This file can
be used by the build verification to check if a repo
can have format-check run.
Fix long lines, bare excepctions, and lambda error messages.
Change-Id: If7f4590c098e04aad6b507c410934f433c739bc7
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
diff --git a/obmc/mapper/bindings.py b/obmc/mapper/bindings.py
index d436bb3..dadec32 100644
--- a/obmc/mapper/bindings.py
+++ b/obmc/mapper/bindings.py
@@ -58,13 +58,15 @@
path, interfaces, signature='sas'),
retries, interval)
- def get_subtree_paths(self, path='/', depth=0, retries=5, interfaces=[], interval=0.2):
+ def get_subtree_paths(
+ self, path='/', depth=0, retries=5, interfaces=[], interval=0.2):
return self.retry(
lambda: self.iface.GetSubTreePaths(
path, depth, interfaces, signature='sias'),
retries, interval)
- def get_subtree(self, path='/', depth=0, retries=5, interfaces=[], interval=0.2):
+ def get_subtree(
+ self, path='/', depth=0, retries=5, interfaces=[], interval=0.2):
return self.retry(
lambda: self.iface.GetSubTree(
path, depth, interfaces, signature='sias'),