On Thu, Dec 16, 2010 at 8:08 PM, Toshio Kuratomi <[email protected]> wrote: > On Thu, Dec 16, 2010 at 10:26:38AM -0800, Diez B. Roggisch wrote: >> Its not a tg thing. These tools can be configured to ignore certain >> identifiers or treat them as pre-declared. But it's specific to then how to >> do that. >> > You can, though, explicitly import the _ function. turbogears happens to > add it to globals which is why it works (and pylint doesn't know about it). > Making the import into the module explicit will make the error go away. > > -Toshio >
You can solve that by passing --additional-builtins=_ to pylint. I do not know if PyFlakes has something like that Regards, Alessandro -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.

