1. Brodie Rao
  2. cram

Commits

Brodie Rao  committed c88b8eb

Fix broken pipe error with -i due to unnecessary p.stdin.flush()

  • Participants
  • Parent commits 5985ec8
  • Branches default

Comments (0)

Files changed (1)

File cram.py

View file
                          universal_newlines=True, close_fds=os.name == 'posix')
     for line in diff:
         p.stdin.write(line)
-    p.stdin.flush()
     p.stdin.close()
     p.wait()
     return p.returncode == 0