# HG changeset patch # User Paul Boddie # Date 1530626324 -7200 # Node ID 0cac8b718fdc44ddb75b42187fcc9f95e9da5ed1 # Parent 4bf5180fbfeea4f4d505238f0f688ea306db1f95 Employ __get_single_item__ invocations when unpacking sequences. diff -r 4bf5180fbfee -r 0cac8b718fdc common.py --- a/common.py Mon Jul 02 19:19:54 2018 +0200 +++ b/common.py Tue Jul 03 15:58:44 2018 +0200 @@ -461,8 +461,9 @@ for i, node in enumerate(n.nodes): statements.append( - compiler.ast.Assign([node], compiler.ast.Subscript( - compiler.ast.Name(temp), "OP_APPLY", [compiler.ast.Const(i, str(i))])) + compiler.ast.Assign([node], compiler.ast.CallFunc( + compiler.ast.Getattr(compiler.ast.Name(temp), "__get_single_item__"), + [compiler.ast.Const(i, str(i))])) ) return self.process_structure_node(compiler.ast.Stmt(statements))