put interactive prompt in bash (#15521)
authorMichael Suo <suo@fb.com>
Mon, 24 Dec 2018 13:34:17 +0000 (05:34 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 24 Dec 2018 13:37:46 +0000 (05:37 -0800)
commit8cd917812b8c654e91c51090cab9a496b60f57ff
treea32c7d07d9c205894c9adbf019ae283d7e6f6deb
parentf8a56bf476e9d0be02a605ba272f7d034c5a1b28
put interactive prompt in bash (#15521)

Summary:
This makes compatibility with different versions of python a little bit simpler, and fixes a problem where stdin wasn't being read from the terminal properly in the prompt.

zdevito This should fix your EOF exception.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/15521

Differential Revision: D13546358

Pulled By: suo

fbshipit-source-id: fb7551a86c888196831c046d9d9848e7ff05b925
tools/clang_format.py
tools/git-pre-commit