[elbe-devel] [PATCH 1/2] pylint: initvm: fix complaint about str shadowing builtin-type str
Torben Hohn
torben.hohn at linutronix.de
Wed Aug 22 15:40:41 CEST 2018
function parameter named str shadowns built-in type str.
rename parameter.
Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
elbepack/initvmaction.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/elbepack/initvmaction.py b/elbepack/initvmaction.py
index 61382701..3d36a5dd 100644
--- a/elbepack/initvmaction.py
+++ b/elbepack/initvmaction.py
@@ -51,8 +51,8 @@ def ensure_initvm_defined():
class InitVMError(Exception):
- def __init__(self, str):
- Exception.__init__(self, str)
+ def __init__(self, msg):
+ Exception.__init__(self, msg)
class InitVMAction(object):
--
2.11.0
More information about the elbe-devel
mailing list