summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2014-10-10 16:00:39 -0400
committerTerry Jan Reedy <tjreedy@udel.edu>2014-10-10 16:00:39 -0400
commit082c6cb18321ca07be0284b837b17da363d797e2 (patch)
tree3aed1e1b5b8f84a9134cced79200a7bb763a5732
parent221439dd618ae531d2a7c2636d2649521eb10db1 (diff)
parentf9bd920cfaa4dc9d1bc7508a0ce4f2bdc926e24e (diff)
downloadcpython-git-082c6cb18321ca07be0284b837b17da363d797e2.tar.gz
Merge with 3.4
-rw-r--r--Doc/library/contextlib.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/contextlib.rst b/Doc/library/contextlib.rst
index 9f174d787b..b0688db011 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::