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 74292555783..4f31dd5a67b 100644 --- a/src/pip/_internal/operations/prepare.py +++ b/src/pip/_internal/operations/prepare.py @@ -74,12 +74,12 @@ def __init__(self, req): 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):