Mercurial > cpython-lru_cache-weakref
diff Tools/scripts/patchcheck.py @ 45883:fa70e6ae831a
Convert the input from stdout to text.
| author | Brett Cannon <bcannon@gmail.com> |
|---|---|
| date | Tue, 18 Mar 2008 21:45:57 +0000 |
| parents | e0e8bef0d5ec |
| children | a04b1c7167ba |
line wrap: on
line diff
--- a/Tools/scripts/patchcheck.py Tue Mar 18 21:40:45 2008 +0000 +++ b/Tools/scripts/patchcheck.py Tue Mar 18 21:45:57 2008 +0000 @@ -33,7 +33,7 @@ cmd = 'svn status --quiet --non-interactive --ignore-externals' svn_st = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE) 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() for line in output: if not line[0] in ('A', 'M'):
