Patchwork D1981: wireprotoserver: add some blank lines between methods

login
register
mail settings
Submitter phabricator
Date Feb. 1, 2018, 11:11 p.m.
Message ID <differential-rev-PHID-DREV-ltthikylqzgm5qhdkxxk-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/27172/
State Superseded
Headers show

Comments

phabricator - Feb. 1, 2018, 11:11 p.m.
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  Let's make this file slightly easier to read.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  mercurial/wireprotoserver.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/wireprotoserver.py b/mercurial/wireprotoserver.py
--- a/mercurial/wireprotoserver.py
+++ b/mercurial/wireprotoserver.py
@@ -109,6 +109,7 @@ 
             else:
                 data[k] = knownargs[k][0]
         return [data[k] for k in keys]
+
     def _args(self):
         args = self.req.form.copy()
         if pycompat.ispy3:
@@ -123,16 +124,19 @@ 
         argvalue = decodevaluefromheaders(self.req, r'X-HgArg')
         args.update(cgi.parse_qs(argvalue, keep_blank_values=True))
         return args
+
     def getfile(self, fp):
         length = int(self.req.env[r'CONTENT_LENGTH'])
         # If httppostargs is used, we need to read Content-Length
         # minus the amount that was consumed by args.
         length -= int(self.req.env.get(r'HTTP_X_HGARGS_POST', 0))
         for s in util.filechunkiter(self.req, limit=length):
             fp.write(s)
+
     def redirect(self):
         self.oldio = self.ui.fout, self.ui.ferr
         self.ui.ferr = self.ui.fout = stringio()
+
     def restore(self):
         val = self.ui.fout.getvalue()
         self.ui.ferr, self.ui.fout = self.oldio