diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2023-07-21 11:49:39 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-21 11:49:39 (GMT) |
commit | 84e52171b541ecc01f2d738cf82f5d4199a4bce7 (patch) | |
tree | d71b78f93d8cc1c1baa5c45435a75b130dfed5d2 /Doc/library/socket.rst | |
parent | 4be0f157ea7000ded8d4a3ae818a74b026f1fed3 (diff) | |
download | cpython-84e52171b541ecc01f2d738cf82f5d4199a4bce7.zip cpython-84e52171b541ecc01f2d738cf82f5d4199a4bce7.tar.gz cpython-84e52171b541ecc01f2d738cf82f5d4199a4bce7.tar.bz2 |
[3.12] gh-106909: Use role :const: for referencing module constants (GH-106910) (GH-106956)
(cherry picked from commit 4b9948617f91175783609769aa6160e5b49b9ccc)
Diffstat (limited to 'Doc/library/socket.rst')
-rw-r--r-- | Doc/library/socket.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst index f2408cb..4f220e8 100644 --- a/Doc/library/socket.rst +++ b/Doc/library/socket.rst @@ -2252,7 +2252,7 @@ This is because the previous execution has left the socket in a ``TIME_WAIT`` state, and can't be immediately reused. There is a :mod:`socket` flag to set, in order to prevent this, -:data:`socket.SO_REUSEADDR`:: +:const:`socket.SO_REUSEADDR`:: s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) |