Skip to content

Commit

Permalink
remove unnecessary codepath that breaks on namespaces packages instal…
Browse files Browse the repository at this point in the history
…led by pip
  • Loading branch information
davisagli committed Mar 11, 2011
1 parent 3e1a00d commit a994831
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions CHANGES.txt
Expand Up @@ -4,8 +4,7 @@ Changes
0.3.4 (unreleased)
------------------

- Nothing changed yet.

* Remove unnecessary distribution lookup in the PluginFinder.

0.3.3 (2010-05-06)
------------------
Expand Down
5 changes: 2 additions & 3 deletions src/z3c/autoinclude/plugin.py
Expand Up @@ -2,12 +2,11 @@
from pkg_resources import iter_entry_points
from pkg_resources import resource_filename
from z3c.autoinclude.utils import DistributionManager
from z3c.autoinclude.utils import distributionForDottedName
from z3c.autoinclude.utils import ZCMLInfo

class PluginFinder(DistributionManager):

class PluginFinder(object):
def __init__(self, platform_dottedname):
self.context = distributionForDottedName(platform_dottedname)
self.dottedname = platform_dottedname

def includableInfo(self, zcml_to_look_for):
Expand Down

0 comments on commit a994831

Please sign in to comment.