From 0aa685a33c49ebb731c565348355b6c9a756b831 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Fri, 19 Apr 2013 11:32:25 -0400 Subject: Minor typo in example. --- Doc/library/contextlib.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/contextlib.rst b/Doc/library/contextlib.rst index 154e395..fee5067 100644 --- a/Doc/library/contextlib.rst +++ b/Doc/library/contextlib.rst @@ -259,7 +259,7 @@ Functions and classes provided: with ExitStack() as stack: files = [stack.enter_context(open(fname)) for fname in filenames] - close_files = stack.pop_all().close + close_files = stack.pop_all().close() # If opening any file fails, all previously opened files will be # closed automatically. If all files are opened successfully, # they will remain open even after the with statement ends. -- cgit v0.12