diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2017-10-12 22:28:55 +0200 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2017-10-12 22:28:55 +0200 |
| commit | 4ee5c6510006d384f9ddd444824367ccaf67f0c9 (patch) | |
| tree | f79df7597eb7e8a638504bdf43a4ac97fac73b0b /pkg_resources/__init__.py | |
| parent | d1f16fdd849264795bfa0a383581ac4ffefeec58 (diff) | |
| download | python-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__.py | 4 |
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): |
