Patchwork D2723: httppeer: remove _requestbuilder attribute

login
register
mail settings
Submitter phabricator
Date March 13, 2018, 12:08 a.m.
Message ID <6d450fecec26d422d15ed38b203b38f5@localhost.localdomain>
Download mbox | patch
Permalink /patch/29416/
State Not Applicable
Headers show

Comments

phabricator - March 13, 2018, 12:08 a.m.
indygreg updated this revision to Diff 6973.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2723?vs=6718&id=6973

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

AFFECTED FILES
  mercurial/httppeer.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/httppeer.py b/mercurial/httppeer.py
--- a/mercurial/httppeer.py
+++ b/mercurial/httppeer.py
@@ -138,7 +138,6 @@ 
         self._path = path
         self._caps = None
         self._urlopener = None
-        self._requestbuilder = None
         u = util.url(path)
         if u.query or u.fragment:
             raise error.Abort(_('unsupported URL component: "%s"') %
@@ -151,7 +150,6 @@ 
         ui.debug('using %s\n' % self._url)
 
         self._urlopener = url.opener(ui, authinfo)
-        self._requestbuilder = urlreq.request
 
     def __del__(self):
         urlopener = getattr(self, '_urlopener', None)
@@ -328,7 +326,7 @@ 
         if varyheaders:
             headers[r'Vary'] = r','.join(varyheaders)
 
-        req = self._requestbuilder(pycompat.strurl(cu), data, headers)
+        req = urlreq.request(pycompat.strurl(cu), data, headers)
 
         if data is not None:
             self.ui.debug("sending %d bytes\n" % size)