mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Merge with 3.4
This commit is contained in:
commit
082c6cb183
1 changed files with 2 additions and 2 deletions
|
|
@ -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::
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue