From: antarus Date: Sun, 1 Apr 2007 04:52:01 +0000 (-0000) Subject: remove string usage as it's obsolete X-Git-Tag: gentoolkit-0.2.4.3~136 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=81d66c88e25d5648ef2dbba1d5f818a4bce6bf00;p=gentoolkit.git remove string usage as it's obsolete svn path=/; revision=377 --- diff --git a/trunk/src/pkg-clean/pkg-clean b/trunk/src/pkg-clean/pkg-clean index c18f1c9..abe0159 100644 --- a/trunk/src/pkg-clean/pkg-clean +++ b/trunk/src/pkg-clean/pkg-clean @@ -8,7 +8,6 @@ import commands import re import sys -import string import time import os @@ -25,7 +24,7 @@ pkg_file_list = pkg_files.splitlines() pkg_hash = {} for time_pkg_pair in pkg_file_list: (pkg_time, pkg) = time_pkg_pair.split() - pkg_time = string.atoi(pkg_time) + pkg_time = int(pkg_time) # This covers developer trees with not-accepted categories tmp_name = re.match(r'/var/db/pkg/(.*/.*)/.*', pkg) if not tmp_name: continue @@ -76,12 +75,12 @@ for pkg_core in pkg_hash.keys(): ins = open(tmpname) for j in ins.readlines(): - idx = string.atoi(j) + idx = int(j) if idx == 0: break full_path = pkg_hash[pkg_core][idx-1][PKG] - ebuild = string.replace(full_path, "/var/db/pkg/", "") + ebuild = full_path.replace("/var/db/pkg/", "") if not assume_yes: params = "dialog --backtitle \"" + ebuild + "\" " + \