Refs #23919 -- Removed Python 2 reference in django_bash_completion.

This commit is contained in:
Mads Jensen 2017-07-10 14:54:52 +02:00 committed by Tim Graham
parent 31a2af1c01
commit 4af88ccbe6
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ _python_django_completion()
{ {
if [[ ${COMP_CWORD} -ge 2 ]]; then if [[ ${COMP_CWORD} -ge 2 ]]; then
local PYTHON_EXE=${COMP_WORDS[0]##*/} local PYTHON_EXE=${COMP_WORDS[0]##*/}
echo $PYTHON_EXE | egrep "python([2-9]\.[0-9])?" >/dev/null 2>&1 echo $PYTHON_EXE | egrep "python([3-9]\.[0-9])?" >/dev/null 2>&1
if [[ $? == 0 ]]; then if [[ $? == 0 ]]; then
local PYTHON_SCRIPT=${COMP_WORDS[1]##*/} local PYTHON_SCRIPT=${COMP_WORDS[1]##*/}
echo $PYTHON_SCRIPT | egrep "manage\.py|django-admin(\.py)?" >/dev/null 2>&1 echo $PYTHON_SCRIPT | egrep "manage\.py|django-admin(\.py)?" >/dev/null 2>&1