diff options
| author | Anthony Sottile <asottile@umich.edu> | 2021-03-31 14:22:37 +0000 |
|---|---|---|
| committer | Anthony Sottile <asottile@umich.edu> | 2021-03-31 14:22:37 +0000 |
| commit | e0116d8e77fb04acc62095734ec49e779f24ee54 (patch) | |
| tree | 382ad5e83f6512ff157553c6a8c16b63569cec70 /docs/source/internal | |
| parent | 1d5dd156ab9f2e37e40f95eb15c5a2c2cd49a7a9 (diff) | |
| parent | edadccd8dcf5fc1de86116adb5f9f13ed1b68637 (diff) | |
| download | flake8-e0116d8e77fb04acc62095734ec49e779f24ee54.tar.gz | |
Merge branch 'py3_plus' into 'master'
drop legacy python versions
Closes #690
See merge request pycqa/flake8!471
Diffstat (limited to 'docs/source/internal')
| -rw-r--r-- | docs/source/internal/releases.rst | 4 | ||||
| -rw-r--r-- | docs/source/internal/writing-code.rst | 6 |
2 files changed, 2 insertions, 8 deletions
diff --git a/docs/source/internal/releases.rst b/docs/source/internal/releases.rst index 0ed0ac9..03178a4 100644 --- a/docs/source/internal/releases.rst +++ b/docs/source/internal/releases.rst @@ -81,13 +81,11 @@ for users. Before releasing, the following tox test environments must pass: -- Python 2.7 (a.k.a., ``tox -e py27``) - - Python 3.6 (a.k.a., ``tox -e py36``) - Python 3.7 (a.k.a., ``tox -e py37``) -- PyPy (a.k.a., ``tox -e pypy``) +- PyPy 3 (a.k.a., ``tox -e pypy3``) - Linters (a.k.a., ``tox -e linters``) diff --git a/docs/source/internal/writing-code.rst b/docs/source/internal/writing-code.rst index d8c63fe..daf1d57 100644 --- a/docs/source/internal/writing-code.rst +++ b/docs/source/internal/writing-code.rst @@ -175,11 +175,7 @@ across multiple lines, insert a new-line after the opening parenthesis, e.g., statistic = next(stats_for_error_code) count = statistic.count count += sum(stat.count for stat in stats_for_error_code) - self._write('{count:<5} {error_code} {message}'.format( - count=count, - error_code=error_code, - message=statistic.message, - )) + self._write(f'{count:<5} {error_code} {statistic.message}') In the first example, we put a few of the parameters all on one line, and then added the last two on their own. In the second example, each parameter has its |
