changeset 35863:49426bb4476c

wireprotoserver: add some blank lines between methods Let's make this file slightly easier to read. Differential Revision: https://phab.mercurial-scm.org/D1981
author Gregory Szorc <gregory.szorc@gmail.com>
date Tue, 30 Jan 2018 17:51:57 -0800
parents 1ab7b16c9437
children bd38ccf4ecf6
files mercurial/wireprotoserver.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/wireprotoserver.py	Thu Jan 25 23:01:20 2018 -0500
+++ b/mercurial/wireprotoserver.py	Tue Jan 30 17:51:57 2018 -0800
@@ -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,6 +124,7 @@
         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
@@ -130,9 +132,11 @@
         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