Skip to content

Commit 0d8bd61

Browse files
fixed requested changes
1 parent 0dc75ec commit 0d8bd61

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

developer-workflow/cpython-deprecation-workflow.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@ Check prevalence and consider alternatives
99

1010
Before proposing deprecation:
1111

12-
* **Assess Usage**: Use tools like GitHub search, ``grep``, or ``PyPI statistics`` to determine the extent and context of usage.
12+
* **Assess Usage**: Use tools like GitHub search, `grep`_, or `PyPI statistics`_ to determine the extent and context of usage.
1313
* **Consider Alternatives**: Ensure there are suitable replacements or upgrades available.
1414

15+
.. _grep: https://www.gnu.org/software/grep/
16+
.. _PyPI statistics: https://pypistats.org/
17+
1518
Open an issue
1619
-------------
1720

@@ -35,7 +38,7 @@ Once approved:
3538
.. code-block:: python
3639
3740
import warnings
38-
warnings.warn(
41+
warnings._deprecated(
3942
"Feature X is deprecated and will be removed in Python 3.Y",
4043
DeprecationWarning,
4144
stacklevel=2

0 commit comments

Comments
 (0)