mercurial/util.py
changeset 52924 c92f9edd362a
parent 52918 e4552f135e35
--- a/mercurial/util.py	Mon Feb 03 23:28:09 2025 +0100
+++ b/mercurial/util.py	Wed Feb 05 21:58:05 2025 +0100
@@ -2881,7 +2881,10 @@
         return d
 
 
-def filechunkiter(f, size=131072, limit=None):
+DEFAULT_FILE_CHUNK = 128 * (2**10)
+
+
+def filechunkiter(f, size=DEFAULT_FILE_CHUNK, limit=None):
     """Create a generator that produces the data in the file size
     (default 131072) bytes at a time, up to optional limit (default is
     to read all data).  Chunks may be less than size bytes if the