On Tuesday 06 April 2010 01:57:10 Brian C. Lane wrote:
> Hi!

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

We usually expect to use just one lettter like 

  --disable-msg-cat=C,R

and this works.  However I added a ticket on it as an enhancement.

http://www.logilab.org/ticket/22962
>
> 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

I think we will have to fix it a bit differently...

But thank you for your bug report.

-- 

Emile Anclin <[email protected]>
http://www.logilab.fr/   http://www.logilab.org/ 
Informatique scientifique & et gestion de connaissances
_______________________________________________
Python-Projects mailing list
[email protected]
http://lists.logilab.org/mailman/listinfo/python-projects

Reply via email to