changeset 189:959c6d37b014

Extend the max line length to read to 4096, which is something along PATH_MAX onn Linux
author Franz Glasner <fzglas.hg@dom66.de>
date Wed, 15 Jan 2025 15:40:46 +0100
parents 2784fdcc99e5
children 7e0c25a31757
files cutils/treesum.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/cutils/treesum.py	Wed Jan 15 14:41:36 2025 +0100
+++ b/cutils/treesum.py	Wed Jan 15 15:40:46 2025 +0100
@@ -794,7 +794,7 @@
         return line
 
     def _get_next_line(self):
-        line = self._fp.readline(2048)
+        line = self._fp.readline(4096)      # along PATH_MAX on Linux
         if line:
             self._line_no += 1
         return line