diff mercurial/dirstateutils/docket.py @ 52680:5027ae0d89b3

pyupgrade: convert `str.format()` to f-strings This is part of the `_fix_tokens()` changes made by `pyupgrade` once py36 is the minimum.
author Matt Harbison <matt_harbison@yahoo.com>
date Mon, 06 Jan 2025 01:44:46 -0500
parents f4733654f144
children
line wrap: on
line diff
--- a/mercurial/dirstateutils/docket.py	Tue Jan 07 16:46:21 2025 -0500
+++ b/mercurial/dirstateutils/docket.py	Mon Jan 06 01:44:46 2025 -0500
@@ -25,7 +25,7 @@
 # Node IDs are null-padded if shorter than 32 bytes.
 # A data file shorter than the specified used size is corrupted (truncated)
 HEADER = struct.Struct(
-    ">{}s32s32s{}sLB".format(len(V2_FORMAT_MARKER), v2.TREE_METADATA_SIZE)
+    f">{len(V2_FORMAT_MARKER)}s32s32s{v2.TREE_METADATA_SIZE}sLB"
 )