fix wiki module for python3
Change-Id: I5f20c2e16651edbfb9d6fbf303d6b04c115c7b8d Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
parent
e7a1bce84e
commit
ae41fe8b7a
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user