[code-quality] Rebuilding AST with Astroid?
Claudiu Popa
pcmanticore at gmail.com
Fri Apr 24 06:34:00 CEST 2015
On Fri, Apr 24, 2015 at 4:38 AM, Jarrad Hope <me at jarradhope.com> wrote:
> Thanks for the timely reply Claudiu
No problem. :-)
>
> Hmm, I tried the example you provided, it returns
> AttributeError: 'Walker' object has no attribute 'set_context'
>
> I tried finding references to set_context but couldn't find any,
>
> i added the following to Walker
> def set_context(self, node, child_node):
> pass
>
> which let me execute, but unsure if that is going to mess with anything?
> set_context sounds kind of important :)
>
Yeah, forgot about that. That particular line seems to be an old artifact
which wasn't removed after a cleanup. Removing it could be a first start for
contributing to astroid, btw. ;-)
More information about the code-quality
mailing list