summaryrefslogtreecommitdiff
path: root/pkg_resources/__init__.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2017-10-12 22:28:55 +0200
committerJason R. Coombs <jaraco@jaraco.com>2017-10-12 22:28:55 +0200
commit4ee5c6510006d384f9ddd444824367ccaf67f0c9 (patch)
treef79df7597eb7e8a638504bdf43a4ac97fac73b0b /pkg_resources/__init__.py
parentd1f16fdd849264795bfa0a383581ac4ffefeec58 (diff)
downloadpython-setuptools-git-4ee5c6510006d384f9ddd444824367ccaf67f0c9.tar.gz
Remove unnecessary serialization/parsing of extras in EntryPoint.__init__. Fixes #1132.
Diffstat (limited to 'pkg_resources/__init__.py')
-rw-r--r--pkg_resources/__init__.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/pkg_resources/__init__.py b/pkg_resources/__init__.py
index e1038473..6f1071fb 100644
--- a/pkg_resources/__init__.py
+++ b/pkg_resources/__init__.py
@@ -2392,9 +2392,7 @@ class EntryPoint(object):
self.name = name
self.module_name = module_name
self.attrs = tuple(attrs)
- ex_spec = "x[%s]" % ','.join(extras)
- req = packaging.requirements.Requirement(ex_spec)
- self.extras = tuple(req.extras)
+ self.extras = tuple(extras)
self.dist = dist
def __str__(self):