diff mercurial/debugcommands.py @ 52674:d903647abbd3

pyupgrade: replace `dict(...)` with dict comprehensions This was rewritten by the `dict_literals` fixer in `pyupgrade`. The last pass over the code for this that I could find was a61ed1c2d7a7.
author Matt Harbison <matt_harbison@yahoo.com>
date Mon, 06 Jan 2025 01:20:01 -0500
parents 73ab542565e0
children
line wrap: on
line diff
--- a/mercurial/debugcommands.py	Mon Jan 06 01:12:54 2025 -0500
+++ b/mercurial/debugcommands.py	Mon Jan 06 01:20:01 2025 -0500
@@ -913,7 +913,7 @@
         label = b' '.join(e[0] for e in entry)
         format = b' '.join(e[1] for e in entry)
         values = [e[3] for e in entry]
-        data = dict((e[2], e[3]) for e in entry)
+        data = {e[2]: e[3] for e in entry}
         fm.startitem()
         fm.write(label, format, *values, **data)
         fm.plain(b'\n')