mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
gh-107091: Fix some uses of :const: role (GH-107379)
It is for references, not for literals.
This commit is contained in:
parent
a43cc3fa1f
commit
0aa58fa7a6
10 changed files with 29 additions and 30 deletions
|
|
@ -877,19 +877,19 @@ always available.
|
|||
``sys.getwindowsversion().major``. For compatibility with prior
|
||||
versions, only the first 5 elements are retrievable by indexing.
|
||||
|
||||
*platform* will be :const:`2 (VER_PLATFORM_WIN32_NT)`.
|
||||
*platform* will be ``2`` (VER_PLATFORM_WIN32_NT).
|
||||
|
||||
*product_type* may be one of the following values:
|
||||
|
||||
+---------------------------------------+---------------------------------+
|
||||
| Constant | Meaning |
|
||||
+=======================================+=================================+
|
||||
| :const:`1 (VER_NT_WORKSTATION)` | The system is a workstation. |
|
||||
| ``1`` (VER_NT_WORKSTATION) | The system is a workstation. |
|
||||
+---------------------------------------+---------------------------------+
|
||||
| :const:`2 (VER_NT_DOMAIN_CONTROLLER)` | The system is a domain |
|
||||
| ``2`` (VER_NT_DOMAIN_CONTROLLER) | The system is a domain |
|
||||
| | controller. |
|
||||
+---------------------------------------+---------------------------------+
|
||||
| :const:`3 (VER_NT_SERVER)` | The system is a server, but not |
|
||||
| ``3`` (VER_NT_SERVER) | The system is a server, but not |
|
||||
| | a domain controller. |
|
||||
+---------------------------------------+---------------------------------+
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue