From 4e4e93f11df631abf851acc79b710d6de5dabe9f Mon Sep 17 00:00:00 2001 From: antarus Date: Sun, 1 Apr 2007 04:15:46 +0000 Subject: [PATCH] Nuke usage of outdated string module, reformat imports svn path=/; revision=371 --- trunk/src/epkginfo/epkginfo | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/trunk/src/epkginfo/epkginfo b/trunk/src/epkginfo/epkginfo index 17e8cba..7d4447f 100755 --- a/trunk/src/epkginfo/epkginfo +++ b/trunk/src/epkginfo/epkginfo @@ -9,8 +9,10 @@ # Gentoo metadata xml and arch keyword checking tool. -import os,sys,portage -import string,re +import os +import sys +import portage +import re from stat import * from output import * from xml.sax import saxutils, make_parser, handler @@ -23,7 +25,7 @@ version="0.4.1" def getvar(pkg, var): file = open(pkg + ".ebuild") for line in file.readlines(): - line = string.rstrip(line) + line = line.rstrip() if re.match("^"+var+"=",line): vars = re.split("\"",line)[1] file.close -- 2.26.2