Lichen

Changeset

867:d3a602461439
2019-01-24 Paul Boddie raw files shortlog changelog graph Permit Raise instantiation using a single argument.
compiler/ast.py (file)
     1.1 --- a/compiler/ast.py	Thu Jan 24 17:39:40 2019 +0100
     1.2 +++ b/compiler/ast.py	Thu Jan 24 18:28:15 2019 +0100
     1.3 @@ -1249,7 +1249,7 @@
     1.4          return "print %s" % ", ".join(map(str, dest + self.nodes))
     1.5  
     1.6  class Raise(Node):
     1.7 -    def __init__(self, expr1, expr2, expr3, lineno=None):
     1.8 +    def __init__(self, expr1, expr2=None, expr3=None, lineno=None):
     1.9          self.expr1 = expr1
    1.10          self.expr2 = expr2
    1.11          self.expr3 = expr3