summaryrefslogtreecommitdiff
path: root/pkg_resources.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-10-11 13:01:01 -0400
committerJason R. Coombs <jaraco@jaraco.com>2014-10-11 13:01:01 -0400
commite83d7d416f8706e262235b594384c70bf854eced (patch)
treeff14518d33aba56c8cbf413a7c574d04a4b804f8 /pkg_resources.py
parent9e8c932911dfa605f48428af7f3c23282012ab6c (diff)
downloadpython-setuptools-git-e83d7d416f8706e262235b594384c70bf854eced.tar.gz
Extract variables
Diffstat (limited to 'pkg_resources.py')
-rw-r--r--pkg_resources.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg_resources.py b/pkg_resources.py
index 35e2ed24..ac72d71f 100644
--- a/pkg_resources.py
+++ b/pkg_resources.py
@@ -626,9 +626,9 @@ class WorkingSet(object):
to_activate.append(dist)
if dist not in req:
# Oops, the "best" so far conflicts with a dependency
- raise VersionConflict(
- "%s is installed but %s is required by %s"
- % (dist, req, list(required_by.get(req))))
+ tmpl = "%s is installed but %s is required by %s"
+ args = dist, req, list(required_by.get(req))
+ raise VersionConflict(tmpl % args)
new_requirements = dist.requires(req.extras)[::-1]
requirements.extend(new_requirements)
for new_requirement in new_requirements: