Skip to content

Commit bfff1b4

Browse files
committed
Bang on 3.6 build_map_unpack_with_call
Probably will fix better in the future.
1 parent e6761e1 commit bfff1b4

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed
155 Bytes
Binary file not shown.

uncompyle6/semantics/pysource.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,8 @@ def n_unmapexpr(node):
639639
self.f.write(', **')
640640
pass
641641
pass
642+
if version >= 3.6:
643+
self.f.write(')')
642644
self.prune()
643645
pass
644646
self.n_unmapexpr = n_unmapexpr
@@ -648,9 +650,10 @@ def n_unmapexpr(node):
648650
# Python 3.6+ Additions
649651
#######################
650652
TABLE_DIRECT.update({
651-
'fstring_expr': ( "{%c%{conversion}}", 0),
653+
'fstring_expr': ( "{%c%{conversion}}", 0),
652654
'fstring_single': ( "f'{%c%{conversion}}'", 0),
653655
'fstring_multi': ( "f'%c'", 0),
656+
'func_args36': ( "%c(**", 0),
654657
})
655658

656659
FSTRING_CONVERSION_MAP = {1: '!s', 2: '!r', 3: '!a'}
@@ -663,6 +666,10 @@ def n_fstring_expr(node):
663666
self.default(node)
664667
self.n_fstring_expr = n_fstring_expr
665668

669+
def n_func_args36(node):
670+
from trepan.api import debug; debug()
671+
672+
666673
def n_fstring_single(node):
667674
f_conversion(node)
668675
self.default(node)

0 commit comments

Comments
 (0)