py_wrap: kinda fixed

This commit is contained in:
Emil J. Tywoniak 2024-10-16 23:12:41 +02:00
parent 86630bba08
commit f219bb357f
1 changed files with 2 additions and 0 deletions

View File

@ -2045,6 +2045,7 @@ def parse_header(source):
if len(classes):
c = (classes[-1][0], classes[-1][1] + nesting_delta(ugly_line))
classes[-1] = c
debug(f"switch to uhh depth {c[1]}", 2)
if c[1] == 0:
if c[0] == None:
@ -2172,6 +2173,7 @@ def parse_header(source):
namespaces.pop()
if len(classes):
c = (classes[-1][0] , classes[-1][1] + nesting_delta(ugly_line))
classes[-1] = c
if c[1] == 0:
if c[0] == None:
debug("\tExiting unknown class", 3)