diff options
| author | antarus <antarus@gentoo.org> | 2007-04-01 04:15:46 +0000 |
|---|---|---|
| committer | antarus <antarus@gentoo.org> | 2007-04-01 04:15:46 +0000 |
| commit | 4e4e93f11df631abf851acc79b710d6de5dabe9f (patch) | |
| tree | 0c13151b89c3f090b90ac1828f47b488ff828c83 | |
| parent | c94a5cdec8c810a23c7952db2ab6b3aa2958c904 (diff) | |
| download | gentoolkit-4e4e93f11df631abf851acc79b710d6de5dabe9f.tar.gz | |
Nuke usage of outdated string module, reformat imports
svn path=/; revision=371
| -rwxr-xr-x | trunk/src/epkginfo/epkginfo | 8 |
1 files 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 |
