From ad6bb031d79a1c9d678e278f973bbb89a0895760 Mon Sep 17 00:00:00 2001 From: Vinay Sajip Date: Fri, 12 Jul 2013 21:44:35 +0100 Subject: [PATCH] Issue #18434: Updated example script to tidy up resources. --- Doc/library/venv.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Doc/library/venv.rst b/Doc/library/venv.rst index 5b7b821e393..5075fb1e45c 100644 --- a/Doc/library/venv.rst +++ b/Doc/library/venv.rst @@ -262,6 +262,7 @@ subclass which installs setuptools and pip into a created venv:: else: sys.stderr.write(s.decode('utf-8')) sys.stderr.flush() + stream.close() def install_script(self, context, name, url): _, _, path, _, _, _ = urlparse(url)