Commit f9bd920c authored by Terry Jan Reedy's avatar Terry Jan Reedy

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

parent 3894b2a2
......@@ -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::
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment