summaryrefslogtreecommitdiffstats
path: root/Doc/reference
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-05-10 09:01:56 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-05-10 09:01:56 (GMT)
commitc499f30286976410be13c8476408531bb21631ce (patch)
tree86b8972b6663726a50d716bb13773171f1ca425a /Doc/reference
parenta4dfbe608fb52191b435c5545e8a343586887135 (diff)
parentdba903993a8d3e13d2cf83d6a8912e908025b17b (diff)
downloadcpython-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.rst6
-rw-r--r--Doc/reference/expressions.rst2
-rw-r--r--Doc/reference/simple_stmts.rst4
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__