From fc219f27e049b0816c40ed587a14005a631abd4b Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Thu, 11 Aug 2016 20:48:12 +0100 Subject: reproducible Debian: Prefer .format over concatentation. Signed-off-by: Holger Levsen --- bin/reproducible_html_packages.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bin/reproducible_html_packages.py b/bin/reproducible_html_packages.py index 1c0f6d94..250cec0c 100755 --- a/bin/reproducible_html_packages.py +++ b/bin/reproducible_html_packages.py @@ -362,8 +362,13 @@ def gen_packages_html(packages, no_clean=False): 'history_arch_uri': '{}/{}/{}.html'.format(HISTORY_URI, a, pkg) }) project_links = renderer.render(project_links_template) - desturl = REPRODUCIBLE_URL + RB_PKG_URI + '/' + suite + \ - '/' + arch + '/' + pkg + '.html' + desturl = '{}{}/{}/{}/{}.html'.format( + REPRODUCIBLE_URL, + RB_PKG_URI, + suite, + arch, + pkg, + ) navigation_html = renderer.render(package_navigation_template, { 'package': pkg, -- cgit v1.2.3-54-g00ecf