|
John Mudd
johnbmudd at gmail.com
Mon Jan 2 10:54:16 EST 2006
Just wrap your mod_python specific imports as shown here. Pychecker
will complain about missing globals but at least it will check the
remaining code.
try:
from mod_python import apache
except:
pass
On 1/2/06, John Mudd <johnbmudd at gmail.com> wrote:
> Any advice on using pychecker with mod_python? I tried the example
> below. next I tried importing pychecker.checker, after setting
> sys.stdout=sys.stderr in checker.py. But that just gave me this msg.
>
> warning: couldn't find real module for
> class <type 'pyexpat.xmlparser'>
> (module name: pyexpat)
>
>
>
> $ pychecker index.py
> Processing index...
> ImportError: No module named _apache
>
> Warnings...
>
> index:1: NOT PROCESSED UNABLE TO IMPORT
> $
>
|