Skip to content

Commit 18753f4

Browse files
committed
Transform/DDG: Fix code rot
1 parent f8f87d8 commit 18753f4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

index2ddg.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ def process_item_hook(self, el, full_name, full_link):
152152
proc_ins = {}
153153

154154
for link in items:
155-
if link in link_map:
156-
fn = link_map[link]
155+
if link in link_map.mapping:
156+
fn = link_map.mapping[link]
157157
if fn not in proc_ins:
158158
proc_ins[fn] = { 'fn': fn, 'link': link, 'idents': {}}
159159
for ident in items[link]:
@@ -442,9 +442,9 @@ def output_redirects():
442442
(last part after :: is enough, hopefully)
443443
'''
444444

445-
elif item_type == ITEM_TYPE_VARIABLE:
446-
elif item_type == ITEM_TYPE_VARIABLE_INLINEMEM:
447-
elif item_type == ITEM_TYPE_ENUM:
445+
elif item_type in [ ITEM_TYPE_VARIABLE,
446+
ITEM_TYPE_VARIABLE_INLINEMEM,
447+
ITEM_TYPE_ENUM ]:
448448
raise DdgException("ENUM") # not implemented
449449
''' Implementation notes:
450450
* the declarations are possibly versioned

0 commit comments

Comments
 (0)