Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Popen.wait()
1 parent d9305f8 commit 86d2044Copy full SHA for 86d2044
1 file changed
Tools/patchcheck/patchcheck.py
@@ -130,9 +130,10 @@ def changed_files(base_branch=None):
130
with subprocess.Popen(cmd.split(),
131
stdout=subprocess.PIPE,
132
cwd=SRCDIR) as st:
133
- if st.wait() != 0:
+ git_file_status, _ = st.communicate()
134
+ if st.returncode != 0:
135
sys.exit(f'error running {cmd}')
- for line in st.stdout:
136
+ for line in git_file_status.splitlines():
137
line = line.decode().rstrip()
138
status_text, filename = line.split(maxsplit=1)
139
status = set(status_text)
0 commit comments