diff options
author | Sebastian Pipping <sebastian@pipping.org> | 2010-02-17 22:35:51 +0100 |
---|---|---|
committer | Sebastian Pipping <sebastian@pipping.org> | 2010-02-17 22:41:11 +0100 |
commit | 2661aa7e6ef777d7fcf3909c1bb181a3cf50449d (patch) | |
tree | dbb1ce3218a6ec5dbbcf873a948bae5ccf4baec9 /layman/debug.py | |
parent | pylint: Resolve redefinition of variable by renaming (diff) | |
download | layman-2661aa7e6ef777d7fcf3909c1bb181a3cf50449d.tar.gz layman-2661aa7e6ef777d7fcf3909c1bb181a3cf50449d.tar.bz2 layman-2661aa7e6ef777d7fcf3909c1bb181a3cf50449d.zip |
pylint: Fix dangerous/mutable default value
Diffstat (limited to 'layman/debug.py')
-rw-r--r-- | layman/debug.py | 9 |
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 |