Fix a reST formatting error

This commit is contained in:
Łukasz Langa 2013-05-25 16:21:03 +02:00
parent 8190ba0c80
commit 5c1b9cc1cd
1 changed files with 7 additions and 6 deletions

View File

@ -192,16 +192,17 @@ argument which includes the relevant ABCs. The algorithm is as follows::
In its most basic form, it returns the MRO for the given type:: In its most basic form, it returns the MRO for the given type::
>>> _compose_mro(dict, []) >>> _compose_mro(dict, [])
[<class 'dict'>, <class 'object'>] [<class 'dict'>, <class 'object'>]
When the haystack consists of ABCs that the specified type is a subclass When the haystack consists of ABCs that the specified type is a subclass
of, they are inserted in a predictable order:: of, they are inserted in a predictable order::
>>> _compose_mro(dict, [Sized, MutableMapping, str, Sequence, Iterable]) >>> _compose_mro(dict, [Sized, MutableMapping, str,
[<class 'dict'>, <class 'collections.abc.MutableMapping'>, ... Sequence, Iterable])
<class 'collections.abc.Iterable'>, <class 'collections.abc.Sized'>, [<class 'dict'>, <class 'collections.abc.MutableMapping'>,
<class 'object'>] <class 'collections.abc.Iterable'>, <class 'collections.abc.Sized'>,
<class 'object'>]
While this mode of operation is significantly slower, no caching is While this mode of operation is significantly slower, no caching is
involved because user code may ``register()`` a new class on an ABC at involved because user code may ``register()`` a new class on an ABC at