diff -r 72cff635a3ce Doc/library/contextlib.rst --- a/Doc/library/contextlib.rst Fri Oct 10 14:23:00 2014 +0200 +++ b/Doc/library/contextlib.rst Fri Oct 10 16:02:45 2014 +0200 @@ -568,10 +568,10 @@ 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::