https://bz.mercurial-scm.org/show_bug.cgi?id=6897
Bug ID: 6897 Summary: HG Webdir config.py gives type error Product: Mercurial Version: stable branch Hardware: PC OS: Linux Status: UNCONFIRMED Severity: bug Priority: wish Component: hgweb Assignee: bugzi...@mercurial-scm.org Reporter: abdussameterso...@gmail.com CC: mercurial-de...@mercurial-scm.org Python Version: --- Hi, I'm using HG Web module to publish my repositories through my server. I use Python 3.12 with Fedora 40. Mercurial version 6.7.3. Given error "TypeError: %b requires a bytes-like object, or an object that implements __bytes__, not 'str'" in config.py on line 222. (217 on version 6.6.3) Temporary solution; - Remove byte converter from this line; -- "self.set(section, item, m.group(2), b"%s:%d" % (src, line))" ----------------------------------------^----------------------- -- "self.set(section, item, m.group(2), "%s:%d" % (src, line))" This fixes the problem. Don't know if this fix causes any other problem. I tested push and pull and they both work fine. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ Mercurial-devel mailing list Mercurial-devel@lists.mercurial-scm.org https://lists.mercurial-scm.org/mailman/listinfo/mercurial-devel