summaryrefslogtreecommitdiff
path: root/pkg_resources.py
diff options
context:
space:
mode:
authorHanno Schlichting <hanno@hannosch.eu>2009-07-17 14:03:44 +0200
committerHanno Schlichting <hanno@hannosch.eu>2009-07-17 14:03:44 +0200
commit6d7c33f6c41f55472db71da84c98b1a60dd8c8b1 (patch)
tree03927c77d1aa6324da569097b00c6332b1c0c030 /pkg_resources.py
parent02cebf77004be44568f347a78631f824296815b9 (diff)
downloadpython-setuptools-git-6d7c33f6c41f55472db71da84c98b1a60dd8c8b1.tar.gz
Cherry-picked documentation and style changes from setuptools trunk
--HG-- branch : distribute extra : rebase_source : 90744e00df97b8b79c6780d7600f189bf2e39a6c
Diffstat (limited to 'pkg_resources.py')
-rw-r--r--pkg_resources.py15
1 files changed, 3 insertions, 12 deletions
diff --git a/pkg_resources.py b/pkg_resources.py
index ea01817b..b22aee74 100644
--- a/pkg_resources.py
+++ b/pkg_resources.py
@@ -123,7 +123,8 @@ __all__ = [
]
class ResolutionError(Exception):
"""Abstract base for dependency resolution errors"""
- def __repr__(self): return self.__class__.__name__+repr(self.args)
+ def __repr__(self):
+ return self.__class__.__name__+repr(self.args)
class VersionConflict(ResolutionError):
"""An already-installed version conflicts with the requested version"""
@@ -134,6 +135,7 @@ class DistributionNotFound(ResolutionError):
class UnknownExtra(ResolutionError):
"""Distribution doesn't have an "extra feature" of the given name"""
_provider_factories = {}
+
PY_MAJOR = sys.version[:3]
EGG_DIST = 3
BINARY_DIST = 2
@@ -201,8 +203,6 @@ macosVersionString = re.compile(r"macosx-(\d+)\.(\d+)-(.*)")
darwinVersionString = re.compile(r"darwin-(\d+)\.(\d+)\.(\d+)-(.*)")
get_platform = get_build_platform # XXX backward compat
-
-
def compatible_platforms(provided,required):
"""Can code for the `provided` platform run on the `required` platform?
@@ -317,15 +317,6 @@ class IMetadataProvider:
-
-
-
-
-
-
-
-
-
class IResourceProvider(IMetadataProvider):
"""An object that provides access to package resources"""