# HG changeset patch # User Paul Boddie # Date 1477175792 -7200 # Node ID 2b3004a5a83bb26a6512563bf7ccd70a6308dc68 # Parent 0158d9bb04c117dab1b186bb6572fcbfff3aee7c Attempt to work around argument sequence type mismatches when serialising. diff -r 0158d9bb04c1 -r 2b3004a5a83b compiler/ast.py --- a/compiler/ast.py Sun Oct 23 00:35:33 2016 +0200 +++ b/compiler/ast.py Sun Oct 23 00:36:32 2016 +0200 @@ -437,7 +437,7 @@ def __str__(self): star_args = self.star_args and ["*%s" % self.star_args] or [] dstar_args = self.dstar_args and ["**%s" % self.dstar_args] or [] - return "%s(%s)" % (self.node, ", ".join(map(str, self.args + star_args + dstar_args))) + return "%s(%s)" % (self.node, ", ".join(map(str, tuple(self.args) + tuple(star_args) + tuple(dstar_args)))) class Class(Node): def __init__(self, name, bases, doc, code, decorators = None, lineno=None):