From 4ee5c6510006d384f9ddd444824367ccaf67f0c9 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Thu, 12 Oct 2017 22:28:55 +0200 Subject: Remove unnecessary serialization/parsing of extras in EntryPoint.__init__. Fixes #1132. --- pkg_resources/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'pkg_resources/__init__.py') 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): -- cgit v1.2.3