aboutsummaryrefslogtreecommitdiffstats
path: root/pkg_resources.py
diff options
context:
space:
mode:
authortarek <none@none>2009-08-05 22:15:47 +0200
committertarek <none@none>2009-08-05 22:15:47 +0200
commitec0118e53d7a36111e45c0f18efebebab4184872 (patch)
tree1a027c6ecec7af0dbd8f98453f066d39d495e1b0 /pkg_resources.py
parent60f1dd07394e23b7463f41edc301d02a7b8aea08 (diff)
downloadexternal_python_setuptools-ec0118e53d7a36111e45c0f18efebebab4184872.tar.gz
external_python_setuptools-ec0118e53d7a36111e45c0f18efebebab4184872.tar.bz2
external_python_setuptools-ec0118e53d7a36111e45c0f18efebebab4184872.zip
removing setuptools module names from user warnings
--HG-- branch : distribute extra : rebase_source : f20f663e7122029c873fde4df0b076697d3c4a44
Diffstat (limited to 'pkg_resources.py')
-rw-r--r--pkg_resources.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg_resources.py b/pkg_resources.py
index 6679a109..92fef2c0 100644
--- a/pkg_resources.py
+++ b/pkg_resources.py
@@ -2263,7 +2263,8 @@ class Distribution(object):
or modname in _namespace_packages
):
continue
-
+ if modname in ('pkg_resources', 'setuptools', 'site'):
+ continue
fn = getattr(sys.modules[modname], '__file__', None)
if fn and normalize_path(fn).startswith(loc):
continue