hgext/remotefilelog/shallowutil.py
changeset 52648 abc327f9628b
parent 52640 24ee91ba9aa8
--- a/hgext/remotefilelog/shallowutil.py	Mon Jan 06 01:06:59 2025 -0500
+++ b/hgext/remotefilelog/shallowutil.py	Mon Jan 06 01:12:54 2025 -0500
@@ -100,7 +100,7 @@
 
     e.g. [{'a': 4', 'b': 2}, {'b': 3, 'c': 1}] -> {'a': 4, 'b': 5, 'c': 1}
     """
-    result = collections.defaultdict(lambda: 0)
+    result = collections.defaultdict(int)
     for dict in dicts:
         for k, v in dict.items():
             result[k] += v