From f9bd920cfaa4dc9d1bc7508a0ce4f2bdc926e24e Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Fri, 10 Oct 2014 16:00:18 -0400 Subject: [PATCH] =?UTF-8?q?Issue=2022603:=20add=20missing=20'self'.=20=20P?= =?UTF-8?q?atch=20by=20Francisco=20Fern=C3=A1ndez=20Casta=C3=B1o.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Doc/library/contextlib.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/contextlib.rst b/Doc/library/contextlib.rst index 9f174d787b3..b0688db011b 100644 --- a/Doc/library/contextlib.rst +++ b/Doc/library/contextlib.rst @@ -568,10 +568,10 @@ single definition:: self.name = name def __enter__(self): - logging.info('Entering: {}'.format(name)) + logging.info('Entering: {}'.format(self.name)) def __exit__(self, exc_type, exc, exc_tb): - logging.info('Exiting: {}'.format(name)) + logging.info('Exiting: {}'.format(self.name)) Instances of this class can be used as both a context manager::