summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2010-02-17 22:35:51 +0100
committerSebastian Pipping <sebastian@pipping.org>2010-02-17 22:41:11 +0100
commit2661aa7e6ef777d7fcf3909c1bb181a3cf50449d (patch)
treedbb1ce3218a6ec5dbbcf873a948bae5ccf4baec9
parent46b5e63dda2b5bef24f5a4803c920a6637c5b56b (diff)
downloadlayman-2661aa7e6ef777d7fcf3909c1bb181a3cf50449d.tar.gz
layman-2661aa7e6ef777d7fcf3909c1bb181a3cf50449d.tar.bz2
layman-2661aa7e6ef777d7fcf3909c1bb181a3cf50449d.zip
pylint: Fix dangerous/mutable default value
-rw-r--r--layman/debug.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/layman/debug.py b/layman/debug.py
index f3b8507..41d084c 100644
--- a/layman/debug.py
+++ b/layman/debug.py
@@ -51,9 +51,12 @@ class Message:
info_level = 4,
warn_level = 4,
col = True,
- mth = ['*'],
- obj = ['*'],
- var = ['*']):
+ mth = None,
+ obj = None,
+ var = None):
+ if mth == None: mth = ['*']
+ if obj == None: obj = ['*']
+ if var == None: var = ['*']
# A description of the module that is being debugged
self.debug_env = module