Mercurial > hgrepos > Python > apps > py-cutils
comparison cutils/treesum.py @ 333:2a244a05bbb5
treesum: FIX: docs
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Fri, 28 Mar 2025 15:29:15 +0100 |
| parents | 5b98810fe367 |
| children | 5afece258bf2 |
comparison
equal
deleted
inserted
replaced
| 332:5b98810fe367 | 333:2a244a05bbb5 |
|---|---|
| 1279 Wraps an output file pointer for a binary file. | 1279 Wraps an output file pointer for a binary file. |
| 1280 | 1280 |
| 1281 Provides low-level methods to write data lines. These methods must be | 1281 Provides low-level methods to write data lines. These methods must be |
| 1282 used if the CRC is to be updated also. | 1282 used if the CRC is to be updated also. |
| 1283 | 1283 |
| 1284 Also holds some very common attributes that control some aspects | |
| 1285 of the output format (e.g. `.LS`, `.use_base64`). | |
| 1286 | |
| 1284 Also holds the current CRC for a block. | 1287 Also holds the current CRC for a block. |
| 1285 | 1288 |
| 1286 """ | 1289 """ |
| 1287 | 1290 |
| 1288 LS = util.b(os.linesep) | 1291 LS = util.b(os.linesep) |
| 1328 class TaggedTreesumWriter(WriterBase): | 1331 class TaggedTreesumWriter(WriterBase): |
| 1329 | 1332 |
| 1330 """Writer to write treesum digest files in a format similar to BSD | 1333 """Writer to write treesum digest files in a format similar to BSD |
| 1331 digest files. | 1334 digest files. |
| 1332 | 1335 |
| 1333 Provides high-level methods to write data lines and some very common | 1336 Provides high-level methods to write data lines. |
| 1334 attributes that control some aspects of the output format. | |
| 1335 | 1337 |
| 1336 """ | 1338 """ |
| 1337 | 1339 |
| 1338 def __init__(self, outfp, **kwds): | 1340 def __init__(self, outfp, **kwds): |
| 1339 super(TaggedTreesumWriter, self).__init__(outfp, **kwds) | 1341 super(TaggedTreesumWriter, self).__init__(outfp, **kwds) |
