summaryrefslogtreecommitdiffstats
path: root/Doc/howto/enum.rst
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2023-10-11 20:43:03 (GMT)
committerGitHub <noreply@github.com>2023-10-11 20:43:03 (GMT)
commit718391f475f2550d99dd794069ca76312f7f6aa6 (patch)
tree521c301b97b356b85054a0dd0c73b8c8df8000c2 /Doc/howto/enum.rst
parentbb7923f556537a463c403dc1097726d8a8e1a6f2 (diff)
downloadcpython-718391f475f2550d99dd794069ca76312f7f6aa6.zip
cpython-718391f475f2550d99dd794069ca76312f7f6aa6.tar.gz
cpython-718391f475f2550d99dd794069ca76312f7f6aa6.tar.bz2
gh-110631: Fix reST indentation (#110724)
* Fix wrong indentation in the other dirs. * Fix more wrong indentation.
Diffstat (limited to 'Doc/howto/enum.rst')
-rw-r--r--Doc/howto/enum.rst15
1 files changed, 8 insertions, 7 deletions
diff --git a/Doc/howto/enum.rst b/Doc/howto/enum.rst
index 2874975..ebaa1cf 100644
--- a/Doc/howto/enum.rst
+++ b/Doc/howto/enum.rst
@@ -1156,13 +1156,14 @@ the following are true:
There is a new boundary mechanism that controls how out-of-range / invalid
bits are handled: ``STRICT``, ``CONFORM``, ``EJECT``, and ``KEEP``:
- * STRICT --> raises an exception when presented with invalid values
- * CONFORM --> discards any invalid bits
- * EJECT --> lose Flag status and become a normal int with the given value
- * KEEP --> keep the extra bits
- - keeps Flag status and extra bits
- - extra bits do not show up in iteration
- - extra bits do show up in repr() and str()
+* STRICT --> raises an exception when presented with invalid values
+* CONFORM --> discards any invalid bits
+* EJECT --> lose Flag status and become a normal int with the given value
+* KEEP --> keep the extra bits
+
+ - keeps Flag status and extra bits
+ - extra bits do not show up in iteration
+ - extra bits do show up in repr() and str()
The default for Flag is ``STRICT``, the default for ``IntFlag`` is ``EJECT``,
and the default for ``_convert_`` is ``KEEP`` (see ``ssl.Options`` for an