-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

I'm the new Fedora/RHEL maintainer for pylint, python-logilab-common and
python-logilab-astng

I'm working on getting things updated and have moved to v0.20.0, but it
still has this issue:

https://bugzilla.redhat.com/show_bug.cgi?id=500272

here's the user's patch for that:

- --- a/utils.py        
+++ a/utils.py  
@@ -18,7 +18,7 @@
 main pylint class
 """

- -import sys
+import sys, types
 from os import linesep

 from logilab.common.textutils import normalize_text
@@ -181,8 +181,10 @@ class MessagesHandlerMixIn:
             self.config.enable_msg = [mid for mid, val in msgs.items()
if val]

     def _cat_ids(self, categories):
+        if isinstance(categories, types.StringType):
+            categories = [categories]
         for catid in categories:
- -            catid = catid.upper()
+            catid = catid[0].upper()
             if not catid in MSG_TYPES:
                 raise Exception('Unknown category identifier %s' % catid)
             yield catid



- -- 
Brian C. Lane <b...@redhat.com>
Red Hat / Port Orchard, WA
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQEVAwUBS7p41hF+jBaO/jp/AQISZgf+KKWoGPAPowGzR/uPhcXNIEvgzgT3nG2H
OeFuaj4hFdT8DZhzvW3b+JUPZUyR9ZFE8RdXF860MIjCIUgi3LUWieb1NuXRQELt
NIh9yk6OnBeph0TRxNU47nEJNvDNex1WfkPJ670x4OmMed2U89d973io3mx1MxsW
oF3gTFJLWgN2O8m2IRbuD3Milp1PJC9wEnZI3esuPbeujokJmL0pBYiajn2NBGxL
2A58JWlSYwKjzpF/+McSiJith/ZW1VoUBCL7qpiFSSdLC/dqcOATZH2yBGdEVnCu
q1VWZGj2Ku9krZO2xdKMN0zItaDxo09cfqK6TQmfLK6mAjyVcpt89A==
=9Ytj
-----END PGP SIGNATURE-----
_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects

Reply via email to