From c44c211541bb33d263acd58f09e51088f15fd5c5 Mon Sep 17 00:00:00 2001 From: Hanno Schlichting Date: Thu, 16 Jul 2009 18:36:04 +0200 Subject: Corrected inconsitency between documentation and code of add_entry. This closes #8. --HG-- branch : distribute extra : rebase_source : b38177940dc7df122d6faa535f32025e241fc129 --- pkg_resources.py | 2 +- pkg_resources.txt | 2 +- 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 -- cgit v1.2.3