Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/hgweb/server.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 | c59eb1560c44 |
children | 92e24a139ecc |
comparison
equal
deleted
inserted
replaced
43116:defabf63e969 | 43117:8ff1ecfadcd1 |
---|---|
240 self._done() | 240 self._done() |
241 | 241 |
242 def send_headers(self): | 242 def send_headers(self): |
243 if not self.saved_status: | 243 if not self.saved_status: |
244 raise AssertionError( | 244 raise AssertionError( |
245 b"Sending headers before " b"start_response() called" | 245 b"Sending headers before start_response() called" |
246 ) | 246 ) |
247 saved_status = self.saved_status.split(None, 1) | 247 saved_status = self.saved_status.split(None, 1) |
248 saved_status[0] = int(saved_status[0]) | 248 saved_status[0] = int(saved_status[0]) |
249 self.send_response(*saved_status) | 249 self.send_response(*saved_status) |
250 self.length = None | 250 self.length = None |