Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ad6bb03

Browse files
committed
Issue #18434: Updated example script to tidy up resources.
1 parent 8c7dde3 commit ad6bb03

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Doc/library/venv.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ subclass which installs setuptools and pip into a created venv::
262262
else:
263263
sys.stderr.write(s.decode('utf-8'))
264264
sys.stderr.flush()
265+
stream.close()
265266

266267
def install_script(self, context, name, url):
267268
_, _, path, _, _, _ = urlparse(url)

0 commit comments

Comments
 (0)