Patchwork D3355: hgweb_mod: inform hgweb class about paths actually being bytes

login
register
mail settings
Submitter phabricator
Date April 16, 2018, 11:22 p.m.
Message ID <5a951926ea2d40fb6ee5a96e97ce85cd@localhost.localdomain>
Download mbox | patch
Permalink /patch/31139/
State Not Applicable
Headers show

Comments

phabricator - April 16, 2018, 11:22 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGb29f490eb904: hgweb_mod: inform hgweb class about paths actually being bytes (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3355?vs=8232&id=8349

REVISION DETAIL
  https://phab.mercurial-scm.org/D3355

AFFECTED FILES
  mercurial/hgweb/hgweb_mod.py

CHANGE DETAILS




To: durin42, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

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: