From b96d41a65f955ab89fc4ffd184e6f126aa60f50f Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 3 May 2005 17:21:13 +0000 Subject: [PATCH] saving_stdout -> redirecting_stdout (Phillip Eby). --- pep-0340.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pep-0340.txt b/pep-0340.txt index 68874c7e8..0aff71259 100644 --- a/pep-0340.txt +++ b/pep-0340.txt @@ -581,7 +581,7 @@ Examples 7. Redirect stdout temporarily: - def saving_stdout(new_stdout): + def redirecting_stdout(new_stdout): save_stdout = sys.stdout try: sys.stdout = new_stdout @@ -592,7 +592,7 @@ Examples Used as follows: block opening(filename, "w") as f: - block saving_stdout(f): + block redirecting_stdout(f): print "Hello world" Acknowledgements