lint.py.patch

download

--- pylint-0.6.4/lint.py 2005-04-11 12:47:45.000000000 +0200
+++ /home/syt/cvs_work/logilab/pylint/lint.py 2005-04-15 10:51:21.000000000 +0200
@@ -40,7 +40,8 @@
import tokenize
from os.path import dirname, basename, splitext, exists, isdir, join, normpath

-from logilab.common.configuration import OptionsManagerMixIn, check_yn
+from logilab.common.configuration import OptionsManagerMixIn, \
+ check_yn, check_csv
from logilab.common.astng import ASTNGManager
from logilab.common.modutils import modpath_from_file, get_module_files, \
file_from_modpath
@@ -279,11 +280,12 @@
if opt_name in self._options_methods:
if value:
meth = self._options_methods[opt_name]
- if isinstance(value, list) :
+ value = check_csv(None, opt_name, value)
+ if isinstance(value, (list, tuple)):
for _id in value :
meth(_id)
else :
- meth(_id)
+ meth(value)
elif opt_name == 'cache-size':
self.manager.set_cache_size(int(value))
elif opt_name in REPORTER_OPT_MAP and check_yn(None, opt_name, value):