Commit 64f6ff1a authored by Ximin Luo's avatar Ximin Luo
Browse files

Simplify call to subprocess.Popen

parent c3474bb2
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -163,14 +163,10 @@ def run_diff(fifo1, fifo2, end_nl_q1, end_nl_q2):

    p = subprocess.Popen(
        cmd,
        shell=False,
        bufsize=1,
        stdin=subprocess.PIPE,
        stdout=subprocess.PIPE,
        stderr=subprocess.STDOUT,
    )
    p.stdin.close()

    parser = DiffParser(p.stdout, end_nl_q1, end_nl_q2)
    parser.parse()
    p.wait()