On Thursday 18 February 2010 07:59:44 Sylvain Thénault wrote:
> On 17 février 01:38, Fletcher Johnson wrote:
> Hi,
>
> > I'm looking into fixing this bug, but I don't have a very good
> > understanding of where I should start tackling this bug. Can any
> > body recommend a file or a set of files in the source where I should
> > concentrate my efforts?
>
> * add a visit_raise method that will check the nature of the raised
> expression to detect potential misusage of a 2-uple

I guess, you should actually add a *visit_assert* and check the type 
of 'test' :

    def visit_assert(self, node):
        if isinstance(node.test, astng.Tuple):
           that_s_bad() 

Maybe we want it in checkers/exceptions.py ?

-- 


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

Reply via email to