From: Vinay Sajip Date: Fri, 12 Jul 2013 20:44:35 +0000 (+0100) Subject: Issue #18434: Updated example script to tidy up resources. X-Git-Tag: v3.4.0a1~227^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ad6bb031d79a1c9d678e278f973bbb89a0895760;p=thirdparty%2FPython%2Fcpython.git Issue #18434: Updated example script to tidy up resources. --- diff --git a/Doc/library/venv.rst b/Doc/library/venv.rst index 5b7b821e393d..5075fb1e45c0 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)