This patch fixes an exception with the disable-msg-cat command line
option on older versions of Pylint. The command line option expects just
one letter and not an entire string.

Tested that it fixes the Pylint 0.19 crash on Ubuntu 10.04. The
disable-msg-cat option is no longer available with Pylint 0.21.1 on
Ubuntu 10.10.

There's a bug report and some history at
https://bugzilla.redhat.com/show_bug.cgi?id=500272.

Signed-off-by: Vinson Lee <[email protected]>
---
 utils/run_pylint.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/utils/run_pylint.py b/utils/run_pylint.py
index f1109e6..30529d0 100755
--- a/utils/run_pylint.py
+++ b/utils/run_pylint.py
@@ -63,7 +63,7 @@ blacklist = ['/contrib/*', '/frontend/afe/management.py']
 if pylint_version >= 0.21:
     pylint_base_opts = ['--disable=W,R,C,E1101,E1103,E1120,F0401']
 else:
-    pylint_base_opts = ['--disable-msg-cat=warning,refactor,convention',
+    pylint_base_opts = ['--disable-msg-cat=W,R,C',
                         '--disable-msg=E1101,E1103,E1120,F0401']
 pylint_base_opts += ['--reports=no',
                      '--include-ids=y']
-- 
1.7.5.4

_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to