Skip to content

Commit 0964c97

Browse files
pratikmallyaxavfernandez
authored andcommitted
Declare all_outputs in outer scope
1 parent 872341d commit 0964c97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pip/utils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,8 +670,8 @@ def call_subprocess(cmd, show_stdout=True, cwd=None,
670670
"Error %s while executing command %s", exc, command_desc,
671671
)
672672
raise
673+
all_output = []
673674
if stdout is not None:
674-
all_output = []
675675
while True:
676676
line = console_to_str(proc.stdout.readline())
677677
if not line:

0 commit comments

Comments
 (0)