diff options
author | Andre Delfino <adelfino@gmail.com> | 2021-04-26 22:13:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-26 22:13:54 (GMT) |
commit | 52cd6d5e1b2bece0d8efb58b1af41071c914ebe6 (patch) | |
tree | 0420c15ff914150667540938f10a9729d8f3743c /Doc/library/contextlib.rst | |
parent | 425434dadc30d96dc1c0c628f954f9b6f5edd2c9 (diff) | |
download | cpython-52cd6d5e1b2bece0d8efb58b1af41071c914ebe6.zip cpython-52cd6d5e1b2bece0d8efb58b1af41071c914ebe6.tar.gz cpython-52cd6d5e1b2bece0d8efb58b1af41071c914ebe6.tar.bz2 |
Use the zero argument form of super() in examples for Python3 docs. (GH-22314)
Diffstat (limited to 'Doc/library/contextlib.rst')
-rw-r--r-- | Doc/library/contextlib.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/contextlib.rst b/Doc/library/contextlib.rst index 91edbba..b92f703 100644 --- a/Doc/library/contextlib.rst +++ b/Doc/library/contextlib.rst @@ -753,7 +753,7 @@ even further by means of a small helper class:: class Callback(ExitStack): def __init__(self, callback, /, *args, **kwds): - super(Callback, self).__init__() + super().__init__() self.callback(callback, *args, **kwds) def cancel(self): |