diff mercurial/revlogutils/debug.py @ 52673:abc327f9628b

pyupgrade: replace unnecessary lambdas in `collections.defaultdict()` calls This was rewritten by the `defaultdict_lambda` fixer in `pyupgrade`.
author Matt Harbison <matt_harbison@yahoo.com>
date Mon, 06 Jan 2025 01:12:54 -0500
parents 0e11e532c958
children
line wrap: on
line diff
--- a/mercurial/revlogutils/debug.py	Mon Jan 06 01:06:59 2025 -0500
+++ b/mercurial/revlogutils/debug.py	Mon Jan 06 01:12:54 2025 -0500
@@ -305,9 +305,9 @@
     # intermediate snapshot against a prior snapshot
     numsemi = 0
     # snapshot count per depth
-    numsnapdepth = collections.defaultdict(lambda: 0)
+    numsnapdepth = collections.defaultdict(int)
     # number of snapshots with a non-ancestor delta
-    numsnapdepth_nad = collections.defaultdict(lambda: 0)
+    numsnapdepth_nad = collections.defaultdict(int)
     # delta against previous revision
     numprev = 0
     # delta against prev, where prev is a non-ancestor