Patchwork D2308: hgweb_mod: partially undo 8afc25e7effc to fix py3

login
register
mail settings
Submitter phabricator
Date Feb. 18, 2018, 12:46 p.m.
Message ID <706666a0369b4ca7e1b6b58082cd209f@localhost.localdomain>
Download mbox | patch
Permalink /patch/28068/
State Not Applicable
Headers show

Comments

phabricator - Feb. 18, 2018, 12:46 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGa87093e2805d: hgweb_mod: partially undo 8afc25e7effc to fix py3 (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2308?vs=5826&id=5844

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

AFFECTED FILES
  mercurial/hgweb/hgweb_mod.py

CHANGE DETAILS




To: durin42, #hg-reviewers, pulkit
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
@@ -63,8 +63,6 @@ 
 
 def getstyle(req, configfn, templatepath):
     fromreq = req.form.get('style', [None])[0]
-    if fromreq is not None:
-        fromreq = pycompat.sysbytes(fromreq)
     styles = (
         fromreq,
         configfn('web', 'style'),