# HG changeset patch # User Augie Fackler # Date 2018-02-18 03:52:24 # Node ID a87093e2805d1486d0af4c3dbf7d77ba0351dcab # Parent 18106c3bc94a94a5ed0cef632c153c596fd4fe54 hgweb_mod: partially undo 8afc25e7effc to fix py3 We now bytes-ify the entire request, so this is wrong. Differential Revision: https://phab.mercurial-scm.org/D2308 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 @@ archivespecs = util.sortdict(( 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'),