diff options
-rw-r--r-- | Doc/library/contextlib.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/contextlib.rst b/Doc/library/contextlib.rst index 9f174d7..b0688db 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:: |