summaryrefslogtreecommitdiff
path: root/mach
diff options
context:
space:
mode:
authorMartin Thomson <martin.thomson@gmail.com>2018-04-06 09:36:53 +1000
committerMartin Thomson <martin.thomson@gmail.com>2018-04-06 09:36:53 +1000
commit5915d6a6003db2873f036fe48c373bff2eca5440 (patch)
treeba77729ad8decc0f2f58c63e99c15bc58a5bcc49 /mach
parentd741fabf2b670212e5c27b4f7ad74d17a08fe1d0 (diff)
downloadnss-hg-5915d6a6003db2873f036fe48c373bff2eca5440.tar.gz
Bug 1451955 - python3 compatibility fix for reading, r=ttaubert
Diffstat (limited to 'mach')
-rwxr-xr-xmach2
1 files changed, 1 insertions, 1 deletions
diff --git a/mach b/mach
index 715f1a9e3..e4e1497e6 100755
--- a/mach
+++ b/mach
@@ -103,7 +103,7 @@ class cfAction(argparse.Action):
files = []
if os.path.exists(os.path.join(cwd, '.hg')):
st = subprocess.Popen(['hg', 'status', '-m', '-a'],
- cwd=cwd, stdout=subprocess.PIPE)
+ cwd=cwd, stdout=subprocess.PIPE, universal_newlines=True)
for line in iter(st.stdout.readline, ''):
files += [line[2:].rstrip()]
elif os.path.exists(os.path.join(cwd, '.git')):