[Bug 6897] New: HG Webdir config.py gives type error
mercurial-bugs at mercurial-scm.org
mercurial-bugs at mercurial-scm.org
Wed Jul 24 07:48:31 UTC 2024
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: bugzilla at mercurial-scm.org
Reporter: abdussametersoylu at gmail.com
CC: mercurial-devel at 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.
More information about the Mercurial-devel
mailing list