From fda667faf93bce3fac4167ea4c46259a9d444445 Mon Sep 17 00:00:00 2001 From: Vineet Naik Date: Sat, 6 Aug 2016 18:53:52 +0530 Subject: [PATCH] Use new style str interpolation --- pipdeptree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipdeptree.py b/pipdeptree.py index f7238f7..1ad9395 100644 --- a/pipdeptree.py +++ b/pipdeptree.py @@ -341,7 +341,7 @@ def conflicting_deps(tree): conflicting[p].append(req) else: ver_spec = (req.version_spec if req.version_spec else '') - req_version_str = '%s%s' % (req.project_name, ver_spec) + req_version_str = '{0}{1}'.format(req.project_name, ver_spec) if req.installed_version not in req_parse(req_version_str): conflicting[p].append(req) return conflicting