diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-05-10 09:01:56 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-05-10 09:01:56 (GMT) |
commit | c499f30286976410be13c8476408531bb21631ce (patch) | |
tree | 86b8972b6663726a50d716bb13773171f1ca425a /Doc/reference | |
parent | a4dfbe608fb52191b435c5545e8a343586887135 (diff) | |
parent | dba903993a8d3e13d2cf83d6a8912e908025b17b (diff) | |
download | cpython-c499f30286976410be13c8476408531bb21631ce.zip cpython-c499f30286976410be13c8476408531bb21631ce.tar.gz cpython-c499f30286976410be13c8476408531bb21631ce.tar.bz2 |
Issue #23921: Standardized documentation whitespace formatting.
Original patch by James Edwards.
Diffstat (limited to 'Doc/reference')
-rw-r--r-- | Doc/reference/datamodel.rst | 6 | ||||
-rw-r--r-- | Doc/reference/expressions.rst | 2 | ||||
-rw-r--r-- | Doc/reference/simple_stmts.rst | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index b67ccbb..c0b4930 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -1754,11 +1754,11 @@ to remember the order that class variables are defined:: class OrderedClass(type): - @classmethod - def __prepare__(metacls, name, bases, **kwds): + @classmethod + def __prepare__(metacls, name, bases, **kwds): return collections.OrderedDict() - def __new__(cls, name, bases, namespace, **kwds): + def __new__(cls, name, bases, namespace, **kwds): result = type.__new__(cls, name, bases, dict(namespace)) result.members = tuple(namespace) return result diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst index c3c3e06..036f4f1 100644 --- a/Doc/reference/expressions.rst +++ b/Doc/reference/expressions.rst @@ -728,7 +728,7 @@ A consequence of this is that although the ``*expression`` syntax may appear (and the ``**expression`` argument, if any -- see below). So:: >>> def f(a, b): - ... print(a, b) + ... print(a, b) ... >>> f(b=1, *(2,)) 2 1 diff --git a/Doc/reference/simple_stmts.rst b/Doc/reference/simple_stmts.rst index 79a46e2..4444add 100644 --- a/Doc/reference/simple_stmts.rst +++ b/Doc/reference/simple_stmts.rst @@ -331,12 +331,12 @@ program: The simple form, ``assert expression``, is equivalent to :: if __debug__: - if not expression: raise AssertionError + if not expression: raise AssertionError The extended form, ``assert expression1, expression2``, is equivalent to :: if __debug__: - if not expression1: raise AssertionError(expression2) + if not expression1: raise AssertionError(expression2) .. index:: single: __debug__ |