diff options
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/copyreg.rst | 2 | ||||
-rw-r--r-- | Doc/library/functools.rst | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/copyreg.rst b/Doc/library/copyreg.rst index 40fca56..4392021 100644 --- a/Doc/library/copyreg.rst +++ b/Doc/library/copyreg.rst @@ -49,7 +49,7 @@ The example below would like to show how to register a pickle function and how it will be used: >>> import copyreg, copy, pickle - >>> class C(object): + >>> class C: ... def __init__(self, a): ... self.a = a ... diff --git a/Doc/library/functools.rst b/Doc/library/functools.rst index 3a0b554..d3debac 100644 --- a/Doc/library/functools.rst +++ b/Doc/library/functools.rst @@ -275,7 +275,7 @@ The :mod:`functools` module defines the following functions: Example:: - >>> class Cell(object): + >>> class Cell: ... def __init__(self): ... self._alive = False ... @property |