if cur_pkg:
pkg_reqs[cur_pkg] = cur_pkg_reqs
cur_pkg = m.groups(1)
- if pkg_reqs.has_key(cur_pkg):
+ if cur_pkg in pkg_reqs:
cur_pkg = None
cur_pkg_reqs = None
else:
m = req_rx.match(l)
if m:
reqs = []
- for x in string.split(m.group(1)):
+ for x in m.group(1).split():
if x in ["RPMLIB_CAP", "NOT", "FOUND", "UNMATCHED"]: continue
m = pkg_name_rx.match(x)
if m: