Anders Kaseorg
9864907985
mypy: Correct typing.re imports to typing.
...
Although typing.re exists in the standard library, mypy has never
recognized it.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2021-03-17 18:41:46 -07:00
Anders Kaseorg
6e4c3e41dc
python: Normalize quotes with Black.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2021-02-12 13:11:19 -08:00
Anders Kaseorg
11741543da
python: Reformat with Black, except quotes.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2021-02-12 13:11:19 -08:00
Anders Kaseorg
08c64f5cfa
markdown: Fix imports for compatibility with typeshed stubs.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-11-10 15:54:27 -08:00
Anders Kaseorg
254b904965
markdown: Migrate off deprecated extension registration interface.
...
Fixes #15205 .
https://python-markdown.github.io/change_log/release-3.0/#homegrown-ordereddict-has-been-replaced-with-a-purpose-built-registry
https://python-markdown.github.io/change_log/release-3.0/#md_globals-keyword-deprecated-from-extension-api
The priority numbers are arbitrarily chosen to preserve the existing
order.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-10-19 18:31:12 -07:00
Anders Kaseorg
1ded51aa9d
python: Replace list literal concatenation with * unpacking.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-09-02 11:15:41 -07:00
Anders Kaseorg
6189e4d0c1
python: Convert more percent formatting to "".format.
...
Semgrep has gotten a little more clever at applying the percent
formatting rule.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-07-13 13:16:38 -07:00
Mohit Gupta
3f5fc13491
refactor: Rename zerver.lib.bugdown to zerver.lib.markdown .
...
This commit is first of few commita which aim to change all the
bugdown references to markdown. This commits rename the files,
file path mentions and change the imports.
Variables and other references to bugdown will be renamed in susequent
commits.
2020-06-26 17:08:37 -07:00