]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #18434: Updated example script to tidy up resources.
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Fri, 12 Jul 2013 20:44:35 +0000 (21:44 +0100)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Fri, 12 Jul 2013 20:44:35 +0000 (21:44 +0100)
Doc/library/venv.rst

index 5b7b821e393d2574381248d8a9a4e65c5a3decbd..5075fb1e45c06136f1b92ee7cbda83b4e96b5038 100644 (file)
@@ -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)