When running Python with warnings enabled, fixes warnings of the form: .../site-packages/pip/_internal/vcs/versioncontrol.py:773: ResourceWarning: unclosed file <_io.BufferedReader name=12> return call_subprocess(cmd, cwd,