summaryrefslogtreecommitdiffstats
path: root/bin/portageq
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2007-01-12 08:19:46 +0000
committerAlec Warner <antarus@gentoo.org>2007-01-12 08:19:46 +0000
commitd8bfca254d38cdfe8d193583d2ec7eb590528433 (patch)
tree20b2d7dd38b7756b6a8bcbdc40e896620edd7005 /bin/portageq
parent544952b129dbb7cd0a0e9ab323c2e89c1b4060c9 (diff)
downloadportage-d8bfca254d38cdfe8d193583d2ec7eb590528433.tar.gz
portage-d8bfca254d38cdfe8d193583d2ec7eb590528433.tar.bz2
portage-d8bfca254d38cdfe8d193583d2ec7eb590528433.zip
More String deprecation
svn path=/main/trunk/; revision=5597
Diffstat (limited to 'bin/portageq')
-rwxr-xr-xbin/portageq13
1 files changed, 6 insertions, 7 deletions
diff --git a/bin/portageq b/bin/portageq
index 5ee16c4ec..0fc195850 100755
--- a/bin/portageq
+++ b/bin/portageq
@@ -21,8 +21,7 @@ except KeyboardInterrupt:
import os
-import types,string
-
+import types
#-----------------------------------------------------------------------------
#
@@ -179,7 +178,7 @@ def match(argv):
print "ERROR: insufficient parameters!"
sys.exit(2)
try:
- print string.join(portage.db[argv[0]]["vartree"].dbapi.match(argv[1]),"\n")
+ print "\n".join(portage.db[argv[0]]["vartree"].dbapi.match(argv[1]))
except ValueError, e:
# Multiple matches thrown from cpv_expand
pkgs = e.args[0]
@@ -279,7 +278,7 @@ def envvar(argv):
def usage(argv):
rev="$Revision: 1.13.2.1 $"
- ver=string.split(rev, ' ')[1]
+ ver= rev.split(' ')[1]
print ">>> Portage information query tool -- version "+ver
print ">>> Usage: portageq <command> [<option> ...]"
print ""
@@ -306,13 +305,13 @@ def usage(argv):
print ""
continue
- lines = string.split(doc, '\n')
- print " "+name+" "+string.strip(lines[0])
+ lines = doc.split("\n")
+ print " "+name+" "+lines[0].strip()
if (len(sys.argv) > 1):
if ("--help" not in sys.argv):
lines = lines[:-1]
for line in lines[1:]:
- print " "+string.strip(line)
+ print " "+line.strip()
if (len(sys.argv) == 1):
print "\nRun portageq with --help for info"