aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHanno Schlichting <hanno@hannosch.eu>2009-07-16 18:36:04 +0200
committerHanno Schlichting <hanno@hannosch.eu>2009-07-16 18:36:04 +0200
commitc44c211541bb33d263acd58f09e51088f15fd5c5 (patch)
treee0b69c2f3e8d7d5fe42c46e5966dfd0beadbeb96
parent600590d491609a42e145cfb57cd26d4bf9817a10 (diff)
downloadexternal_python_setuptools-c44c211541bb33d263acd58f09e51088f15fd5c5.tar.gz
external_python_setuptools-c44c211541bb33d263acd58f09e51088f15fd5c5.tar.bz2
external_python_setuptools-c44c211541bb33d263acd58f09e51088f15fd5c5.zip
Corrected inconsitency between documentation and code of add_entry. This closes #8.
--HG-- branch : distribute extra : rebase_source : b38177940dc7df122d6faa535f32025e241fc129
-rw-r--r--pkg_resources.py2
-rwxr-xr-xpkg_resources.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/pkg_resources.py b/pkg_resources.py
index 24b91902..87072b4d 100644
--- a/pkg_resources.py
+++ b/pkg_resources.py
@@ -387,7 +387,7 @@ class WorkingSet(object):
def add_entry(self, entry):
"""Add a path item to ``.entries``, finding any distributions on it
- ``find_distributions(entry,False)`` is used to find distributions
+ ``find_distributions(entry,True)`` is used to find distributions
corresponding to the path entry, and they are added. `entry` is
always appended to ``.entries``, even if it is already present.
(This is because ``sys.path`` can contain the same value more than
diff --git a/pkg_resources.txt b/pkg_resources.txt
index 7d8afd37..ccb15fae 100755
--- a/pkg_resources.txt
+++ b/pkg_resources.txt
@@ -269,7 +269,7 @@ instance:
the global ``working_set`` to reflect the change. This method is also
called by the ``WorkingSet()`` constructor during initialization.
- This method uses ``find_distributions(entry,False)`` to find distributions
+ This method uses ``find_distributions(entry,True)`` to find distributions
corresponding to the path entry, and then ``add()`` them. `entry` is
always appended to the ``entries`` attribute, even if it is already
present, however. (This is because ``sys.path`` can contain the same value