Page MenuHomeSoftware Heritage

Make get_swhid() more pythonic
ClosedPublic

Authored by vlorentz on May 17 2021, 2:31 PM.

Diff Detail

Repository
rDWAPPS Web applications
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build has FAILED

Patch application report for D5745 (id=20536)

Rebasing onto 8157fd1c35...

Current branch diff-target is up to date.
Changes applied before test
commit a33f56e5ff1d92dbb2d3f8b9eae9d2aed233f448
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Mon May 17 14:30:45 2021 +0200

    Make get_swhid() more pythonic

Link to build: https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/829/
See console output for more information: https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/829/console

Harbormaster returned this revision to the author for changes because remote builds failed.May 17 2021, 2:32 PM
Harbormaster failed remote builds in B21516: Diff 20536!

(test failure is not related to this diff)

lgtm (and clearer ;)

swh/web/common/identifiers.py
237–238

directly?

This revision is now accepted and ready to land.May 17 2021, 3:32 PM
swh/web/common/identifiers.py
237–238

I don't know, I find it a little clearer with .lower() on its own line

This revision was landed with ongoing or failed builds.May 17 2021, 4:32 PM
This revision was automatically updated to reflect the committed changes.