diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2015-04-11 11:59:50 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2015-04-11 11:59:50 (GMT) |
commit | 2995cc68550a62657339d3455ecb2e37a926ad7c (patch) | |
tree | eaaa302eb4bb77fc3335523d3f95ad720a6d5710 /Doc/reference | |
parent | 339e3f33b6dad76b2622ffd34fc4b0083936fa24 (diff) | |
parent | 770319d6bd57558a269d388120a4edeff857a3ad (diff) | |
download | cpython-2995cc68550a62657339d3455ecb2e37a926ad7c.zip cpython-2995cc68550a62657339d3455ecb2e37a926ad7c.tar.gz cpython-2995cc68550a62657339d3455ecb2e37a926ad7c.tar.bz2 |
Issue #23912: Fix code formatting in datamodel.rst.
Patch by James Edwards.
Diffstat (limited to 'Doc/reference')
-rw-r--r-- | Doc/reference/datamodel.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index 5e909a9..df8b245 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -2226,9 +2226,9 @@ correctness, implicit special method lookup generally also bypasses the :meth:`__getattribute__` method even of the object's metaclass:: >>> class Meta(type): - ... def __getattribute__(*args): - ... print("Metaclass getattribute invoked") - ... return type.__getattribute__(*args) + ... def __getattribute__(*args): + ... print("Metaclass getattribute invoked") + ... return type.__getattribute__(*args) ... >>> class C(object, metaclass=Meta): ... def __len__(self): |