• Adam Allred's avatar
    [2.1.x] Fixed #29774 -- Fixed django-admin shell hang on startup. · 0d5d8ed3
    Adam Allred yazdı
    sys.stdin.read() blocks waiting for EOF in shell.py which will
    likely never come if the user provides input on stdin via the
    keyboard before the shell starts. Added check for a tty to
    skip reading stdin if it's not present.
    
    This still allows piping of code into the shell (which should
    have no TTY and should have an EOF) but also doesn't cause it
    to hang if multi-line input is provided.
    
    Backport of 4e78e389 from master.
    0d5d8ed3
Adı
Son kayıt (commit)
Son güncelleme
.tx Loading commit data...
django Loading commit data...
docs Loading commit data...
extras Loading commit data...
js_tests Loading commit data...
scripts Loading commit data...
tests Loading commit data...
.editorconfig Loading commit data...
.eslintignore Loading commit data...
.eslintrc Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.hgignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.rst Loading commit data...
Gruntfile.js Loading commit data...
INSTALL Loading commit data...
LICENSE Loading commit data...
LICENSE.python Loading commit data...
MANIFEST.in Loading commit data...
README.rst Loading commit data...
package.json Loading commit data...
setup.cfg Loading commit data...
setup.py Loading commit data...
tox.ini Loading commit data...