Mercurial > hg
comparison mercurial/wireprotov1peer.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 | 9f70512ae2cf |
comparison
equal
deleted
inserted
replaced
43116:defabf63e969 | 43117:8ff1ecfadcd1 |
---|---|
141 self.close() | 141 self.close() |
142 | 142 |
143 def callcommand(self, command, args): | 143 def callcommand(self, command, args): |
144 if self._sent: | 144 if self._sent: |
145 raise error.ProgrammingError( | 145 raise error.ProgrammingError( |
146 b'callcommand() cannot be used ' b'after commands are sent' | 146 b'callcommand() cannot be used after commands are sent' |
147 ) | 147 ) |
148 | 148 |
149 if self._closed: | 149 if self._closed: |
150 raise error.ProgrammingError( | 150 raise error.ProgrammingError( |
151 b'callcommand() cannot be used ' b'after close()' | 151 b'callcommand() cannot be used after close()' |
152 ) | 152 ) |
153 | 153 |
154 # Commands are dispatched through methods on the peer. | 154 # Commands are dispatched through methods on the peer. |
155 fn = getattr(self._peer, pycompat.sysstr(command), None) | 155 fn = getattr(self._peer, pycompat.sysstr(command), None) |
156 | 156 |