comparison 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
comparison
equal deleted inserted replaced
52673:abc327f9628b 52674:d903647abbd3
911 fm.plain(header) 911 fm.plain(header)
912 for entry in lines: 912 for entry in lines:
913 label = b' '.join(e[0] for e in entry) 913 label = b' '.join(e[0] for e in entry)
914 format = b' '.join(e[1] for e in entry) 914 format = b' '.join(e[1] for e in entry)
915 values = [e[3] for e in entry] 915 values = [e[3] for e in entry]
916 data = dict((e[2], e[3]) for e in entry) 916 data = {e[2]: e[3] for e in entry}
917 fm.startitem() 917 fm.startitem()
918 fm.write(label, format, *values, **data) 918 fm.write(label, format, *values, **data)
919 fm.plain(b'\n') 919 fm.plain(b'\n')
920 fm.end() 920 fm.end()
921 921