mdwsetup.py (progoutput): Only read one byte to decide whether there is more.
[runlisp] / mdwsetup.py
index 57832a2..0210714 100644 (file)
@@ -76,7 +76,7 @@ def progoutput(command):
   kid = SUB.Popen(command, stdout = SUB.PIPE)
   try:
     out = kid.stdout.readline()
-    junk = kid.stdout.read()
+    junk = kid.stdout.read(1)
   finally:
     kid.stdout.close()
   if junk != '': raise ValueError \