Skip to content

Commit 54baf04

Browse files
authored
Merge pull request swiftlang#32794 from compnerd/debugging-the-debug-test
test: make test syntactically compatible with Python3
2 parents adec755 + cd744da commit 54baf04

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/DebugInfo/local-vars.swift.gyb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,11 @@ type_initializer_map = [
8282
]
8383

8484
import re
85-
def derive_name((type, val)):
85+
def derive_name(type, val):
8686
return (re.sub(r'[<> ,\.\?\(\)\[\]-]', '_', type), type, val)
8787

88-
for name, type, val in map(derive_name, type_initializer_map):
88+
for (type, val) in type_initializer_map:
89+
(name, type, val) = derive_name(type, val)
8990
generic = (type in ['T', 'U'])
9091
function = "->" in type
9192
}%

0 commit comments

Comments
 (0)