Package: pychecker
Version: 0.8.18-7
Severity: normal
Tags: patch
When using the -q / --stdlib option, the method getStandardLibraries() in
warn.py gets library
names from site-packages, but not the new location for them, which is
dist-packages. This means
errors from these packages are not ignored as they should be.
-- System Information:
Debian Release: 6.0.3
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Versions of packages pychecker depends on:
ii python 2.6.6-3+squeeze6 interactive high-level object-orie
ii python-support 1.0.10 automated rebuilding support for P
pychecker recommends no packages.
pychecker suggests no packages.
-- no debconf information
Index: pychecker-0.8.19/pychecker/warn.py
===================================================================
--- pychecker-0.8.19.orig/pychecker/warn.py 2011-11-11 13:48:13.000000000 +0000
+++ pychecker-0.8.19/pychecker/warn.py 2011-11-11 13:48:37.000000000 +0000
@@ -451,7 +451,7 @@
ret = []
for std_lib in std_libs:
path = os.path.split(std_lib)
- if path[1] == 'site-packages' :
+ if path[1] in ('dist-packages', 'site-packages') :
ret.append(path[0])
return ret
except ImportError :