Browse Source

Merge pull request #23758 from butterflya/patch-5

hydra-eval-failures.py: Remove Python 2 specific syntax
nixos-19.03
Domen Kožar 5 years ago committed by GitHub
parent
commit
25d3a0b6b6
  1. 4
      maintainers/scripts/hydra-eval-failures.py

4
maintainers/scripts/hydra-eval-failures.py

@ -74,13 +74,13 @@ def cli(jobset):
# TODO: dependency failed without propagated builds
for tr in d('img[alt="Failed"]').parents('tr'):
a = pq(tr)('a')[1]
print "- [ ] [{}]({})".format(a.text, a.get('href'))
print("- [ ] [{}]({})".format(a.text, a.get('href')))
sys.stdout.flush()
maintainers = get_maintainers(a.text)
if maintainers:
print " - maintainers: {}".format(", ".join(map(lambda u: '@' + u, maintainers)))
print(" - maintainers: {}".format(", ".join(map(lambda u: '@' + u, maintainers))))
# TODO: print last three persons that touched this file
# TODO: pinpoint the diff that broke this build, or maybe it's transient or maybe it never worked?

Loading…
Cancel
Save