summaryrefslogtreecommitdiff
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/archive-conf
parentset Id on tests (diff)
downloadportage-multirepo-d8bfca254d38cdfe8d193583d2ec7eb590528433.tar.gz
portage-multirepo-d8bfca254d38cdfe8d193583d2ec7eb590528433.tar.bz2
portage-multirepo-d8bfca254d38cdfe8d193583d2ec7eb590528433.zip
More String deprecation
svn path=/main/trunk/; revision=5597
Diffstat (limited to 'bin/archive-conf')
-rwxr-xr-xbin/archive-conf10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/archive-conf b/bin/archive-conf
index 31068758..bec5b3f0 100755
--- a/bin/archive-conf
+++ b/bin/archive-conf
@@ -10,7 +10,7 @@
# Jeremy Wohl's dispatch-conf script and the portage chkcontents script.
#
-import os, sys, string
+import os, sys
try:
import portage
except ImportError:
@@ -32,7 +32,7 @@ except ImportError:
hexform = ""
for ix in xrange(len(md5sum)):
hexform = hexform + "%02x" % ord(md5sum[ix])
- return string.lower(hexform)
+ return hexform.lower()
def perform_checksum(filename):
f = open(filename, 'rb')
@@ -75,12 +75,12 @@ def archive_conf():
sys.exit(1)
lines = contents.readlines()
for line in lines:
- items = string.split(line)
+ items = line.split()
if items[0] == 'obj':
for conf in args:
if items[1] == conf:
- stored = string.lower(items[2])
- real = string.lower(perform_checksum(conf)[0])
+ stored = items[2].lower()
+ real = perform_checksum(conf)[0].lower()
if stored == real:
md5_match_hash[conf] = conf
todo_cnt -= 1