[Git][reproducible-builds/diffoscope][master] linting: reformat code to comply with black v24.1.1
Chris Lamb (@lamby)
gitlab at salsa.debian.org
Mon Feb 12 17:46:39 UTC 2024
Chris Lamb pushed to branch master at Reproducible Builds / diffoscope
Commits:
fa73fc2b by James Addison at 2024-02-12T09:50:21+00:00
linting: reformat code to comply with black v24.1.1
- - - - -
1 changed file:
- diffoscope/presenters/utils.py
Changes:
=====================================
diffoscope/presenters/utils.py
=====================================
@@ -270,6 +270,7 @@ class PartialString:
So you probably want to avoid such usages. The exact behaviour of these
might change in the future, too.
"""
+
formatter = PartialFormatter()
escape = staticmethod(PartialFormatter.escape)
@@ -287,9 +288,11 @@ class PartialString:
# Remove unused and duplicates in the holes objects
seen = collections.OrderedDict()
mapping = tuple(
- FormatPlaceholder(seen.setdefault(k, len(seen)))
- if i in used_args
- else None
+ (
+ FormatPlaceholder(seen.setdefault(k, len(seen)))
+ if i in used_args
+ else None
+ )
for i, k in enumerate(holes)
)
self._fmtstr = fmt.vformat(fmtstr, mapping, None)
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/fa73fc2b693f276c006b97ce604609903e44fd8e
--
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/fa73fc2b693f276c006b97ce604609903e44fd8e
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20240212/79672177/attachment.htm>
More information about the rb-commits
mailing list