D3355: hgweb_mod: inform hgweb class about paths actually being bytes
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Sat Apr 14 04:32:33 UTC 2018
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D3355
AFFECTED FILES
mercurial/hgweb/hgweb_mod.py
CHANGE DETAILS
diff --git a/mercurial/hgweb/hgweb_mod.py b/mercurial/hgweb/hgweb_mod.py
--- a/mercurial/hgweb/hgweb_mod.py
+++ b/mercurial/hgweb/hgweb_mod.py
@@ -208,7 +208,7 @@
be multiple active threads inside __call__.
"""
def __init__(self, repo, name=None, baseui=None):
- if isinstance(repo, str):
+ if isinstance(repo, bytes):
if baseui:
u = baseui.copy()
else:
To: durin42, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list