diff options
author | Johannes 'josch' Schauer <josch@debian.org> | 2020-10-17 10:37:57 +0200 |
---|---|---|
committer | Johannes 'josch' Schauer <josch@debian.org> | 2020-10-17 10:38:35 +0200 |
commit | 1a154998ea23c5700f4e69760daa5860ef25e79b (patch) | |
tree | 5717b64ff8f0521e3c4242d125868aabd89bfdef /debian | |
parent | 71a9da9468d2372cd667b67cc64e36f5674487d7 (diff) |
patch tools/stat-html.py to make black happy (closes: #972258)
Diffstat (limited to 'debian')
-rw-r--r-- | debian/patches/black.patch | 40 | ||||
-rw-r--r-- | debian/patches/series | 1 |
2 files changed, 41 insertions, 0 deletions
diff --git a/debian/patches/black.patch b/debian/patches/black.patch new file mode 100644 index 0000000..cd5ff39 --- /dev/null +++ b/debian/patches/black.patch @@ -0,0 +1,40 @@ +--- a/tools/stat-html.py ++++ b/tools/stat-html.py +@@ -27,10 +27,14 @@ def sob(binpkg): + + def sos(srcpkg): + name, ver = srcpkg +- return '<a href="/source/%s_%s.html" class="pkg"' % ( +- name, +- ver, +- ) + ' title="src:%s (= %s)">src:%s</a>' % (name, ver, name) ++ return ( ++ '<a href="/source/%s_%s.html" class="pkg"' ++ % ( ++ name, ++ ver, ++ ) ++ + ' title="src:%s (= %s)">src:%s</a>' % (name, ver, name) ++ ) + + + # string of list +@@ -48,10 +52,14 @@ def sov(vertex): + if t == "SrcPkg": + name, ver = data + fullname = "src:%s (= %s)" % (name, ver) +- return '<a href="/source/%s_%s.html" class="pkg"' % ( +- name, +- ver, +- ) + ' title="%s">src:%s</a>' % (fullname, name) ++ return ( ++ '<a href="/source/%s_%s.html" class="pkg"' ++ % ( ++ name, ++ ver, ++ ) ++ + ' title="%s">src:%s</a>' % (fullname, name) ++ ) + elif t == "InstSet": + (name, arch, ver), instset = data + instset = ", ".join( diff --git a/debian/patches/series b/debian/patches/series index b4c3c37..0586f3a 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,4 @@ parmap_workaround 0001-tools-build-order-from-zero.py-fix-pyflakes-error.patch 0002-tools-.py-fix-pycodestyle-error-E741.patch +black.patch |