From b7a4d70b25c9d6b2915b0f78cdb55e180e5fed9b Mon Sep 17 00:00:00 2001 From: Pradyun Gedam Date: Sun, 2 Dec 2018 17:30:44 +0530 Subject: [PATCH] Don't instantiate NotImplementedError --- src/pip/_internal/operations/prepare.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pip/_internal/operations/prepare.py b/src/pip/_internal/operations/prepare.py index 742925557..4f31dd5a6 100644 --- a/src/pip/_internal/operations/prepare.py +++ b/src/pip/_internal/operations/prepare.py @@ -74,12 +74,12 @@ class DistAbstraction(object): def dist(self): # type: () -> Any """Return a setuptools Dist object.""" - raise NotImplementedError(self.dist) + raise NotImplementedError def prep_for_dist(self, finder, build_isolation): # type: (PackageFinder, bool) -> Any """Ensure that we can get a Dist for this requirement.""" - raise NotImplementedError(self.dist) + raise NotImplementedError class IsWheel(DistAbstraction):