[Python-checkins] cpython (3.4): Issue 22603: add missing 'self'. Patch by Francisco Fernández Castaño.
terry.reedy
python-checkins at python.org
Fri Oct 10 22:01:14 CEST 2014
https://hg.python.org/cpython/rev/b81443d9c64a
changeset: 92932:b81443d9c64a
branch: 3.4
parent: 92930:7ef6e5f53418
user: Terry Jan Reedy <tjreedy at udel.edu>
date: Fri Oct 10 16:00:18 2014 -0400
summary:
Issue 22603: add missing 'self'. Patch by Francisco Fernández Castaño.
files:
Doc/library/contextlib.rst | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Doc/library/contextlib.rst b/Doc/library/contextlib.rst
--- a/Doc/library/contextlib.rst
+++ b/Doc/library/contextlib.rst
@@ -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::
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list