diff options
author | 2017-12-03 14:23:45 +0100 | |
---|---|---|
committer | 2017-12-03 14:23:45 +0100 | |
commit | cea78aa151cdca1b2c824d8db44a352d4ec88e51 (patch) | |
tree | 2cf7ccb1b6ae6cdd0795e1fbbe464a173915b1e9 | |
parent | Add a 'cleanup' action to remove stale preferences (diff) | |
download | eselect-python-cea78aa151cdca1b2c824d8db44a352d4ec88e51.tar.gz eselect-python-cea78aa151cdca1b2c824d8db44a352d4ec88e51.tar.bz2 eselect-python-cea78aa151cdca1b2c824d8db44a352d4ec88e51.zip |
Remove obsolete '--ABI' option
-rw-r--r-- | python.eselect.in | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/python.eselect.in b/python.eselect.in index e9378d4..2f7ff8f 100644 --- a/python.eselect.in +++ b/python.eselect.in @@ -202,7 +202,6 @@ describe_show() { } describe_show_options() { - echo "--ABI : use PYTHON_ABI variable format (deprecated)" echo "--cpython : show the preferred version of CPython" echo "--pref-only : consider only explicitly preferred impls" echo "--python2 : show the preferred version of CPython 2" @@ -210,12 +209,9 @@ describe_show_options() { } do_show() { - local abi filter interpreter pref_only + local filter interpreter pref_only while [[ ${#} -gt 0 ]]; do case ${1} in - --ABI) - abi=1 - ;; --cpython|--py) filter=--py ;; @@ -250,11 +246,7 @@ do_show() { break done - if [[ ${abi} ]]; then - echo "${interpreter#python}" - else - echo "${interpreter}" - fi + echo "${interpreter}" } ### edit action ### @@ -278,7 +270,6 @@ describe_show() { } describe_show_options() { - echo "--ABI : use PYTHON_ABI variable format (deprecated)" echo "--cpython : show the preferred version of CPython" echo "--pref-only : consider only explicitly preferred impls" echo "--python2 : show the preferred version of CPython 2" @@ -286,12 +277,9 @@ describe_show_options() { } do_show() { - local abi filter interpreter pref_only + local filter interpreter pref_only while [[ ${#} -gt 0 ]]; do case ${1} in - --ABI) - abi=1 - ;; --cpython|--py) filter=--py ;; @@ -326,11 +314,7 @@ do_show() { break done - if [[ ${abi} ]]; then - echo "${interpreter#python}" - else - echo "${interpreter}" - fi + echo "${interpreter}" } ### list action ### |