summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/eclean3
-rwxr-xr-xbin/eclean-dist3
-rwxr-xr-xbin/eclean-pkg3
-rwxr-xr-xbin/ekeyword2
-rwxr-xr-xbin/enalyze2
-rwxr-xr-xbin/epkginfo2
-rwxr-xr-xbin/equery2
-rwxr-xr-xbin/euse8
-rwxr-xr-xbin/imlate2
-rwxr-xr-xbin/revdep-rebuild2
10 files changed, 4 insertions, 25 deletions
diff --git a/bin/eclean b/bin/eclean
index 715787b..90f9e55 100755
--- a/bin/eclean
+++ b/bin/eclean
@@ -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'
diff --git a/bin/equery b/bin/equery
index 292321e..77371d1 100755
--- a/bin/equery
+++ b/bin/equery
@@ -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.
diff --git a/bin/euse b/bin/euse
index 15a2a6e..263d0f2 100755
--- a/bin/euse
+++ b/bin/euse
@@ -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
diff --git a/bin/imlate b/bin/imlate
index d186f0d..040d19e 100755
--- a/bin/imlate
+++ b/bin/imlate
@@ -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: