Skip to content

Commit d4fb824

Browse files
committed
fix bug: hq for chain_conts so that it correctly captures the use of 'jump'
1 parent 112ea4d commit d4fb824

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unpythonic/syntax/tailtools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ def add_implicit_bare_return(tree, **kw):
441441
# Handle multiple-return-values like the rest of unpythonic does:
442442
# returning a tuple means returning multiple values. Unpack them
443443
# to cc's arglist.
444-
with q as chain_conts:
444+
with hq as chain_conts:
445445
def chain_conts(cc1, cc2, with_star=False): # cc1=_pcc, cc2=cc
446446
if with_star: # to be chainable from a tail call, accept a multiple-values arglist
447447
if cc1 is not None:

0 commit comments

Comments
 (0)