diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2014-10-10 20:00:18 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2014-10-10 20:00:18 (GMT) |
commit | f9bd920cfaa4dc9d1bc7508a0ce4f2bdc926e24e (patch) | |
tree | 33476467d79c2b5ea1c9c5a66b961ee728d32ec2 /Doc | |
parent | 3894b2a24f1a0a94601cc2436f779aa666a2f9dd (diff) | |
download | cpython-f9bd920cfaa4dc9d1bc7508a0ce4f2bdc926e24e.zip cpython-f9bd920cfaa4dc9d1bc7508a0ce4f2bdc926e24e.tar.gz cpython-f9bd920cfaa4dc9d1bc7508a0ce4f2bdc926e24e.tar.bz2 |
Issue 22603: add missing 'self'. Patch by Francisco Fernández Castaño.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/contextlib.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/contextlib.rst b/Doc/library/contextlib.rst index 9f174d7..b0688db 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:: |