fix wiki module for python3

Change-Id: I5f20c2e16651edbfb9d6fbf303d6b04c115c7b8d
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2017-03-03 14:54:13 -05:00
parent e7a1bce84e
commit ae41fe8b7a
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ def get_page_section(page_content, section):
lambda x: x.lower() != section_start,
lines,
)
lines.next() # skip the section heading
next(lines) # skip the section heading
lines = itertools.takewhile(
lambda x: not x.startswith('== '),
lines,
@ -59,7 +59,7 @@ def get_wiki_table(page_content, section):
items = [i.strip() for i in line.lstrip('|').split('||')]
row = {
h: i
for (h, i) in itertools.izip(headings, items)
for (h, i) in zip(headings, items)
}
yield row