From: Daniele Varrazzo Date: Fri, 27 Dec 2024 23:20:05 +0000 (+0100) Subject: docs: suggest using pyupgrade when dropping a Python version X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=be068375439a2a0b0a79795e261f9700f889731d;p=thirdparty%2Fpsycopg.git docs: suggest using pyupgrade when dropping a Python version --- diff --git a/docs/release.rst b/docs/release.rst index c379934d0..fcca3af60 100644 --- a/docs/release.rst +++ b/docs/release.rst @@ -128,6 +128,12 @@ When dropping end-of-life Python versions An example for grepping `end-of-life ` Python 3.8:: git grep -E -e '\b3\.8\b' -e '\b(cp)?38\b' -e '\b3, 8\b' + git grep -E -e '\b3\.9\b' -e '\b(cp)?39\b' -e '\b3, 9\b' + +- Consider using pyupgrade_ with ``--py3NN-plus`` in order to refresh syntax + to Python 3.NN (the new minimum supported version). + +.. _pyupgrade: https://pypi.org/project/pyupgrade/ Examples: