commit | 52cd6d5e1b2bece0d8efb58b1af41071c914ebe6 | [log] [tgz] |
---|---|---|
author | Andre Delfino <adelfino@gmail.com> | Mon Apr 26 19:13:54 2021 -0300 |
committer | GitHub <noreply@github.com> | Mon Apr 26 15:13:54 2021 -0700 |
tree | 0420c15ff914150667540938f10a9729d8f3743c | |
parent | 425434dadc30d96dc1c0c628f954f9b6f5edd2c9 [diff] [blame] |
Use the zero argument form of super() in examples for Python3 docs. (GH-22314)
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 @@ class Callback(ExitStack): def __init__(self, callback, /, *args, **kwds): - super(Callback, self).__init__() + super().__init__() self.callback(callback, *args, **kwds) def cancel(self):