diff mercurial/wireprotov2server.py @ 43117:8ff1ecfadcd1

cleanup: join string literals that are already on one line Thanks to Kyle for noticing this and for providing the regular expression to run on the codebase. This patch has been reviewed by the test suite and they approved of it. # skip-blame: fallout from mass reformatting Differential Revision: https://phab.mercurial-scm.org/D7028
author Martin von Zweigbergk <martinvonz@google.com>
date Tue, 08 Oct 2019 15:06:18 -0700
parents d783f945a701
children a61287a95dc3
line wrap: on
line diff
--- a/mercurial/wireprotov2server.py	Tue Oct 08 15:15:37 2019 -0700
+++ b/mercurial/wireprotov2server.py	Tue Oct 08 15:06:18 2019 -0700
@@ -140,7 +140,7 @@
         # since client does Accept it.
         res.headers[b'Content-Type'] = b'text/plain'
         res.setbodybytes(
-            _(b'client MUST send Content-Type header with ' b'value: %s\n')
+            _(b'client MUST send Content-Type header with value: %s\n')
             % FRAMINGTYPE
         )
         return
@@ -324,7 +324,7 @@
             res.status = b'403 Forbidden'
             res.headers[b'Content-Type'] = b'text/plain'
             res.setbodybytes(
-                _(b'insufficient permissions to execute ' b'command: %s')
+                _(b'insufficient permissions to execute command: %s')
                 % command[b'command']
             )
             return True
@@ -340,7 +340,7 @@
             res.status = b'200 OK'
             res.headers[b'Content-Type'] = b'text/plain'
             res.setbodybytes(
-                _(b'multiple commands cannot be issued to this ' b'URL')
+                _(b'multiple commands cannot be issued to this URL')
             )
             return True
 
@@ -725,13 +725,13 @@
 
     if not isinstance(args, dict):
         raise error.ProgrammingError(
-            b'arguments for version 2 commands ' b'must be declared as dicts'
+            b'arguments for version 2 commands must be declared as dicts'
         )
 
     for arg, meta in args.items():
         if arg == b'*':
             raise error.ProgrammingError(
-                b'* argument name not allowed on ' b'version 2 commands'
+                b'* argument name not allowed on version 2 commands'
             )
 
         if not isinstance(meta, dict):
@@ -773,7 +773,7 @@
     def register(func):
         if name in COMMANDS:
             raise error.ProgrammingError(
-                b'%s command already registered ' b'for version 2' % name
+                b'%s command already registered for version 2' % name
             )
 
         COMMANDS[name] = wireprototypes.commandentry(
@@ -890,7 +890,7 @@
 
     if not isinstance(revisions, list):
         raise error.WireprotoCommandError(
-            b'revisions must be defined as an ' b'array'
+            b'revisions must be defined as an array'
         )
 
     for spec in revisions: