# HG changeset patch # User Paul Boddie # Date 1548350895 -3600 # Node ID d3a602461439eab5d14d27485bc1df18a92b1815 # Parent 6538a119a67f51f3d70b1d88a124bccad4096c76 Permit Raise instantiation using a single argument. diff -r 6538a119a67f -r d3a602461439 compiler/ast.py --- a/compiler/ast.py Thu Jan 24 17:39:40 2019 +0100 +++ b/compiler/ast.py Thu Jan 24 18:28:15 2019 +0100 @@ -1249,7 +1249,7 @@ return "print %s" % ", ".join(map(str, dest + self.nodes)) class Raise(Node): - def __init__(self, expr1, expr2, expr3, lineno=None): + def __init__(self, expr1, expr2=None, expr3=None, lineno=None): self.expr1 = expr1 self.expr2 = expr2 self.expr3 = expr3