mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 02:48:00 +00:00
python: Reformat with Black, except quotes.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
5028c081cb
commit
11741543da
@@ -17,9 +17,11 @@ def get_canonical_timezone_map() -> Dict[str, str]:
|
||||
canonical[alias] = name
|
||||
return canonical
|
||||
|
||||
|
||||
def canonicalize_timezone(key: str) -> str:
|
||||
return get_canonical_timezone_map().get(key, key)
|
||||
|
||||
|
||||
# Note: some of these abbreviations are fundamentally ambiguous (see
|
||||
# zerver/tests/test_timezone.py), so you should never rely on them as
|
||||
# anything more than a heuristic.
|
||||
|
||||
Reference in New Issue
Block a user