Issue 22603: add missing 'self'. Patch by Francisco Fernández Castaño.

This commit is contained in:
Terry Jan Reedy 2014-10-10 16:00:18 -04:00
parent 3894b2a24f
commit f9bd920cfa
1 changed files with 2 additions and 2 deletions

View File

@ -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::