Skip to content

Commit 7e93102

Browse files
committed
Don't capture output
1 parent efa7f2b commit 7e93102

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pip/_internal/network/auth.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ def get_credential(
6060
@classmethod
6161
def set_password(cls, service_name: str, username: str, password: str) -> None:
6262
cmd = ["keyring", "set", service_name, username]
63-
res = subprocess.run(cmd, input=password.encode() + b"\n", capture_output=True)
63+
input_ = password.encode() + b"\n"
64+
res = subprocess.run(cmd, input=input_)
6465
res.check_returncode()
6566
return None
6667

0 commit comments

Comments
 (0)