Patchwork D2854: hgweb: use our forked wsgiheaders module instead of stdlib one

login
register
mail settings
Submitter phabricator
Date April 11, 2018, 7:50 p.m.
Message ID <6d8cc6a60c2687250c9dca5ca975bbf7@localhost.localdomain>
Download mbox | patch
Permalink /patch/30735/
State Not Applicable
Headers show

Comments

phabricator - April 11, 2018, 7:50 p.m.
durin42 updated this revision to Diff 8009.
durin42 edited the summary of this revision.
durin42 retitled this revision from "hgweb: str/bytes followups after indygreg's refactoring" to "hgweb: use our forked wsgiheaders module instead of stdlib one".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2854?vs=7020&id=8009

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

AFFECTED FILES
  mercurial/hgweb/request.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/hgweb/request.py b/mercurial/hgweb/request.py
--- a/mercurial/hgweb/request.py
+++ b/mercurial/hgweb/request.py
@@ -8,7 +8,6 @@ 
 
 from __future__ import absolute_import
 
-import wsgiref.headers as wsgiheaders
 #import wsgiref.validate
 
 from ..thirdparty import (
@@ -19,6 +18,9 @@ 
     pycompat,
     util,
 )
+from . import (
+    wsgiheaders,
+)
 
 class multidict(object):
     """A dict like object that can store multiple values for a key.