changeset 316:3f1f1c2e9e5f

treesum: FIX: returned tag should be a native string
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 10 Mar 2025 10:25:20 +0100
parents aaf0b3b53e48
children fc1b940bd4a6
files cutils/treesum.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/cutils/treesum.py	Mon Mar 10 10:19:33 2025 +0100
+++ b/cutils/treesum.py	Mon Mar 10 10:25:20 2025 +0100
@@ -1586,7 +1586,7 @@
                 self._update_crc(line)
                 if mo.group(1) in (b"COMMENT", b"ERROR", b"GENERATOR",
                                    b"FNMATCH"):
-                    return (util.u(mo.group(1)), util.u(mo.group(2), "utf-8"))
+                    return (util.n(mo.group(1)), util.u(mo.group(2), "utf-8"))
                 elif mo.group(1) == b"ROOT":
                     return ("ROOT", mo.group(2))
                 assert False, line