summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDaniele Nicolodi <daniele@grinta.net>2022-07-30 12:17:13 +0200
committerDaniele Nicolodi <daniele@grinta.net>2022-07-30 12:17:13 +0200
commit0ba3c88dec4dfe283a13c77095b874c613124f98 (patch)
tree13e20787cdcafc9fc567d12e4f26a53df4b61653 /docs
parent91bd58262741d160afe47ce2fc4ee686049a3124 (diff)
downloadpython-setuptools-git-0ba3c88dec4dfe283a13c77095b874c613124f98.tar.gz
docs: Apply uniform formatting to None
Diffstat (limited to 'docs')
-rw-r--r--docs/userguide/extension.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/userguide/extension.rst b/docs/userguide/extension.rst
index d5c169b9..78b2e7ef 100644
--- a/docs/userguide/extension.rst
+++ b/docs/userguide/extension.rst
@@ -103,7 +103,7 @@ The idea here is that the entry point defines a function that will be called
to validate the ``setup()`` argument, if it's supplied. The ``Distribution``
object will have the initial value of the attribute set to ``None``, and the
validation function will only be called if the ``setup()`` call sets it to
-a non-None value. Here's an example validation function::
+a non-``None`` value. Here's an example validation function::
def assert_bool(dist, attr, value):
"""Verify that value is True, False, 0, or 1"""
@@ -115,8 +115,8 @@ a non-None value. Here's an example validation function::
Your function should accept three arguments: the ``Distribution`` object,
the attribute name, and the attribute value. It should raise a
``SetupError`` (from the ``setuptools.errors`` module) if the argument
-is invalid. Remember, your function will only be called with non-None values,
-and the default value of arguments defined this way is always None. So, your
+is invalid. Remember, your function will only be called with non-``None`` values,
+and the default value of arguments defined this way is always ``None``. So, your
commands should always be prepared for the possibility that the attribute will
be ``None`` when they access it later.