Skip to content

Commit 8aa5556

Browse files
committed
Update code examples in docs
1 parent d49abc9 commit 8aa5556

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/library/sys.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ always available. Unless explicitly noted otherwise, all variables are read-only
2222
Default flags became an empty string (``m`` flag for pymalloc has been
2323
removed).
2424

25+
.. availability:: Unix.
26+
2527
.. versionchanged:: 3.14
2628
A deprecation warning will be emitted if the :data:`sys.abiflags` member
2729
is accessed on Windows.
@@ -30,9 +32,9 @@ always available. Unless explicitly noted otherwise, all variables are read-only
3032
.. code-block:: python
3133
3234
>>> import sys
33-
>>> getattr(sys, 'abiflags', None)
35+
>>> getattr(sys, 'abiflags', None) # on Windows
3436
<python-input-1>:1: DeprecationWarning: sys.abiflags will be set to a meaningful value on all platforms ...
35-
>>> hasattr(sys, 'abiflags')
37+
>>> hasattr(sys, 'abiflags') # on Windows
3638
<python-input-2>:1: DeprecationWarning: sys.abiflags will be set to a meaningful value on all platforms ...
3739
False
3840
@@ -46,8 +48,6 @@ always available. Unless explicitly noted otherwise, all variables are read-only
4648
Windows in Python 3.16. This means the :data:`sys.abiflags` member will
4749
always be available on all platforms starting from Python 3.16.
4850

49-
.. availability:: Unix.
50-
5151

5252
.. function:: addaudithook(hook)
5353

0 commit comments

Comments
 (0)