Pychecker and /var/tmp/python2-2.2-root/usr/lib/python2.2/.....
Sandeep Gupta
sandeep182 at hotmail.com
Mon Jun 24 17:27:30 EDT 2002
I'm using pychecker on my application, which uses BaseHTTPServer.py
and unittest.py. Both those files have "No method" warnings that are
displayed as:
/var/tmp/python2-2.2-root/usr/lib/python2.2/BaseHTTPServer.py and
/var/tmp/python2-2.2-root/usr/lib/python2.2/unittest.py
I want to be able to ignore the "No method" warnings in those two
files, but not in other files.
I've tried both blacklist and ignoreStandardLibrary, but neither
works:
1)before removing warnings for blacklisted modules, pychecker checks
to see if the module listed in blacklist is valid.
/var/tmp/python2-2.2-root/usr/lib/python2.2/BaseHTTPServer.py actually
doesn't exist (I don't understand why pychecker thinks that is the
fully qualified location of the module. I would expect the module
name to be /usr/lib/python2.2/BaseHTTPServer.py ). Blacklisting
/usr/lib/python2.2/BaseHTTPServer.py doesn't work either since it
doesn't match /var/tmp...../BaseHTTPServer.py.
2)On my python installation, ignoreStandardLibrary only checks that
the prefix of the module is /usr/lib/python2.2. Again, that doesn't
match.
Does anyone know why /var/tmp/python2-2.2-root gets prepended to the
file name?
How can I remove the warnings for these files?
Thanks
Sandeep Gupta
More information about the Python-list
mailing list