mirror of
https://github.com/python/cpython.git
synced 2025-11-02 11:08:57 +00:00
Convert the input from stdout to text.
This commit is contained in:
parent
87875dffbb
commit
5396a66539
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ def changed_files():
|
||||||
cmd = 'svn status --quiet --non-interactive --ignore-externals'
|
cmd = 'svn status --quiet --non-interactive --ignore-externals'
|
||||||
svn_st = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE)
|
svn_st = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE)
|
||||||
svn_st.wait()
|
svn_st.wait()
|
||||||
output = [line.strip() for line in svn_st.stdout.readlines()]
|
output = [x.decode().rstrip() for x in svn_st.stdout.readlines()]
|
||||||
files = set()
|
files = set()
|
||||||
for line in output:
|
for line in output:
|
||||||
if not line[0] in ('A', 'M'):
|
if not line[0] in ('A', 'M'):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue