diff options
| author | Matt Turner <mattst88@gentoo.org> | 2020-12-20 17:12:31 -0500 |
|---|---|---|
| committer | Matt Turner <mattst88@gentoo.org> | 2020-12-20 17:12:31 -0500 |
| commit | d21a2fa94f571100e30f5b755e5050246bcfbbdd (patch) | |
| tree | 182c335eea3ec0daa71566d1cb765d82d34ff27c /bin | |
| parent | f14b6198d1dd9cb7f4a83f3822e4a1782a5581e8 (diff) | |
| download | gentoolkit-d21a2fa94f571100e30f5b755e5050246bcfbbdd.tar.gz | |
Remove imports from __future__
gentoolkit supports only Python 3.6+ now, so these are not used.
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/eclean | 3 | ||||
| -rwxr-xr-x | bin/eclean-dist | 3 | ||||
| -rwxr-xr-x | bin/eclean-pkg | 3 | ||||
| -rwxr-xr-x | bin/ekeyword | 2 | ||||
| -rwxr-xr-x | bin/enalyze | 2 | ||||
| -rwxr-xr-x | bin/epkginfo | 2 | ||||
| -rwxr-xr-x | bin/equery | 2 | ||||
| -rwxr-xr-x | bin/euse | 8 | ||||
| -rwxr-xr-x | bin/imlate | 2 | ||||
| -rwxr-xr-x | bin/revdep-rebuild | 2 |
10 files changed, 4 insertions, 25 deletions
@@ -4,9 +4,6 @@ Distributed under the terms of the GNU General Public License v2 """ -from __future__ import print_function - - # Meta: __author__ = "Thomas de Grenier de Latour (tgl), " + \ "modular re-write by: Brian Dolbec (dol-sen)" diff --git a/bin/eclean-dist b/bin/eclean-dist index 715787b..90f9e55 100755 --- a/bin/eclean-dist +++ b/bin/eclean-dist @@ -4,9 +4,6 @@ Distributed under the terms of the GNU General Public License v2 """ -from __future__ import print_function - - # Meta: __author__ = "Thomas de Grenier de Latour (tgl), " + \ "modular re-write by: Brian Dolbec (dol-sen)" diff --git a/bin/eclean-pkg b/bin/eclean-pkg index 715787b..90f9e55 100755 --- a/bin/eclean-pkg +++ b/bin/eclean-pkg @@ -4,9 +4,6 @@ Distributed under the terms of the GNU General Public License v2 """ -from __future__ import print_function - - # Meta: __author__ = "Thomas de Grenier de Latour (tgl), " + \ "modular re-write by: Brian Dolbec (dol-sen)" diff --git a/bin/ekeyword b/bin/ekeyword index 72b3f95..2e3c78e 100755 --- a/bin/ekeyword +++ b/bin/ekeyword @@ -13,8 +13,6 @@ the current list as they appear, and ebuilds are processed as they appear. """ -from __future__ import print_function - import os import sys # This block ensures that ^C interrupts are handled quietly. diff --git a/bin/enalyze b/bin/enalyze index 5991f60..a0bb29a 100755 --- a/bin/enalyze +++ b/bin/enalyze @@ -12,8 +12,6 @@ packages that use them. It can also be used to help rebuild /etc/portage/packag files in the event of corruption, and possibly more. """ -from __future__ import print_function - import sys # This block ensures that ^C interrupts are handled quietly. try: diff --git a/bin/epkginfo b/bin/epkginfo index 75a2f3f..4f87176 100755 --- a/bin/epkginfo +++ b/bin/epkginfo @@ -7,8 +7,6 @@ """Shortcut to equery meta""" -from __future__ import print_function - __authors__ = ( 'Douglas Anderson <douglasjanderson@gmail.com>: equery meta', 'Ned Ludd <solar@gentoo.org>: first full implimentation' @@ -10,8 +10,6 @@ information about packages, such as the files they own, their USE flags, the MD5 sum of each file owned by a given package, and many other things. """ -from __future__ import print_function - import os import sys # This block ensures that ^C interrupts are handled quietly. @@ -184,7 +184,7 @@ VER # worth another look to avoid calling python unnecessariy. Or we could # just write the whole thing in python. ;) reduce_incrementals() { - echo $@ | python -c "from __future__ import print_function;import sys + echo $@ | python -c "import sys r=[] for x in sys.stdin.read().split(): if x[0] == '-' and x[1:] in r: @@ -202,7 +202,7 @@ print(' '.join(r))" # Similar to reduce_incrementals but negative flags trump positive # flags, regardless of which follows which reduce_incrementals_trump() { - echo $@ | python -c "from __future__ import print_function;import sys + echo $@ | python -c "import sys r=[] for x in sys.stdin.read().split(): if x[0] == '-' and x[1:] in r: @@ -221,7 +221,7 @@ print(' '.join(r))" # * - Lines of package atom followed by flags # (app-editors/vim flag1 flag2 -flag3) reduce_package_use() { - echo "${@}" | python -c "from __future__ import print_function;import sys,re + echo "${@}" | python -c "import sys,re h={}; getflags=re.compile(r'(-?[\w*-]+)') for x in sys.stdin.read().split('\n'): if not x: continue @@ -541,7 +541,7 @@ get_flagstatus_helper_pkg() { if [[ -z "${atoms[@]/[<>=]*/}" ]]; then atoms=($( echo "${atoms[@]}" | python -c " -from __future__ import print_function;import portage.dep as dep, sys +import portage.dep as dep, sys print(' '.join(dep.match_to_list('$5-$6',sys.stdin.read().split())))")) fi flags=$(for atom in ${atoms[@]}; do @@ -13,8 +13,6 @@ the current list as they appear, and ebuilds are processed as they appear. """ -from __future__ import print_function - import os import sys # This block ensures that ^C interrupts are handled quietly. diff --git a/bin/revdep-rebuild b/bin/revdep-rebuild index b77ebe9..24d349e 100755 --- a/bin/revdep-rebuild +++ b/bin/revdep-rebuild @@ -11,8 +11,6 @@ those broken binaries and shared libraries. It is useful when an upgraded packag dependent upon the upgraded package. """ -from __future__ import print_function - import sys # This block ensures that ^C interrupts are handled quietly. try: |
