# 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
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