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)