mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 03:11:54 +00:00
python: Fix errors from pycodestyle 2.6.0.
zerver/lib/i18n.py:34:28: E741 ambiguous variable name 'l' zerver/lib/webhooks/common.py:103:34: E225 missing whitespace around operator zerver/tests/test_queue_worker.py:563:9: E306 expected 1 blank line before a nested definition, found 0 Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
9a9c1e0794
commit
10805abd6e
@@ -100,7 +100,7 @@ def standardize_headers(input_headers: Union[None, Dict[str, Any]]) -> Dict[str,
|
||||
|
||||
for raw_header in input_headers:
|
||||
polished_header = raw_header.upper().replace("-", "_")
|
||||
if polished_header not in["CONTENT_TYPE", "CONTENT_LENGTH"]:
|
||||
if polished_header not in ["CONTENT_TYPE", "CONTENT_LENGTH"]:
|
||||
if not polished_header.startswith("HTTP_"):
|
||||
polished_header = "HTTP_" + polished_header
|
||||
canonical_headers[polished_header] = str(input_headers[raw_header])
|
||||
|
||||
Reference in New Issue
Block a user