Mercurial > hgrepos > Python > apps > py-cutils
comparison cutils/treesum.py @ 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 |
comparison
equal
deleted
inserted
replaced
| 188:2784fdcc99e5 | 189:959c6d37b014 |
|---|---|
| 792 else: | 792 else: |
| 793 assert False, line | 793 assert False, line |
| 794 return line | 794 return line |
| 795 | 795 |
| 796 def _get_next_line(self): | 796 def _get_next_line(self): |
| 797 line = self._fp.readline(2048) | 797 line = self._fp.readline(4096) # along PATH_MAX on Linux |
| 798 if line: | 798 if line: |
| 799 self._line_no += 1 | 799 self._line_no += 1 |
| 800 return line | 800 return line |
| 801 | 801 |
| 802 def _reset_crc(self): | 802 def _reset_crc(self): |
