GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — use config.every rather than config.last for typeSubs · ntworld/java2python@0b66998

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • java2python/mod
    • transform.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎java2python/mod/transform.py‎

Copy file name to clipboardExpand all lines: java2python/mod/transform.py
+4-3Lines 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 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.