diff tests/test-pathencode.py @ 53031:e705fec4a03f stable

branching: merging with 7.0 changes Since 6.9.3 was made after 7.0rc0 we need to deal with more branching than usual.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 05 Mar 2025 23:02:19 +0100
parents abc327f9628b
children
line wrap: on
line diff
--- a/tests/test-pathencode.py	Wed Mar 05 22:33:11 2025 +0100
+++ b/tests/test-pathencode.py	Wed Mar 05 23:02:19 2025 +0100
@@ -51,7 +51,7 @@
     """Construct and print a table of probabilities for path name
     components.  The numbers are percentages."""
 
-    counts = collections.defaultdict(lambda: 0)
+    counts = collections.defaultdict(int)
     for line in os.popen(cmd).read().splitlines():
         if line[-2:] in ('.i', '.d'):
             line = line[:-2]