Skip to content

Commit 0b66998

Browse files
committed
use config.every rather than config.last for typeSubs
1 parent 150e5ce commit 0b66998

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

java2python/mod/transform.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ def typeSub(node, config):
184184
mapping and further discussion.
185185
"""
186186
ident = node.token.text
187-
subs = config.last('typeSubs')
188-
if ident in subs:
189-
node.token.text = subs[ident]
187+
for subs in reversed(config.every('typeSubs', {})):
188+
if ident in subs:
189+
node.token.text = subs[ident]
190+
return

0 commit comments

Comments
 (0)