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 — Cleanup · Jatz/PeopleCodeTools@3d1f798

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • ExtractCallStack.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎ExtractCallStack.py‎

Copy file name to clipboardExpand all lines: ExtractCallStack.py
+2-3Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,13 @@ def run(self, edit):
6363

6464
# extContext will store a list of contexts to keep track of all the start and start-ext calls
6565
extContext = []
66-
nestLevelOffset = 0
6766

6867
# Perform initial formatting based on Nest value
6968
for lineContents in lines:
7069
# extract Nest value from lineContents
7170
match = re.search(r'(start-ext|start|end-ext|end|resume|reend).*Nest=(\d+)', lineContents)
7271
if match:
73-
nestLevel = nestLevelOffset + int(match.group(2)) - lowestNestValue
72+
nestLevel = int(match.group(2)) - lowestNestValue
7473

7574
startIndex = 0
7675

@@ -142,7 +141,7 @@ def run(self, edit):
142141

143142
startIndex = 0
144143

145-
for x in range(startIndex,nestLevel + nestLevelOffset):
144+
for x in range(startIndex,nestLevel):
146145
lineContents = '\t' + lineContents
147146

148147
if lastCall == 'start':

0 commit comments

Comments
0 (0)
You are visitor 01402792 — 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.