Commits

Joe Amenta committed 3408fbb

Band-aid to refactor "raise x from y" into "raise x"

  • Participants
  • Parent commits 21d5839

Comments (0)

Files changed (1)

lib3to2/fixes/fix_raise.py

 
     PATTERN = """
     raise_stmt< 'raise' power< exc=any trailer< '(' val=any* ')' >
-        trailer< '.' 'with_traceback' > trailer< '(' trc=any ')' > > >"""
+        trailer< '.' 'with_traceback' > trailer< '(' trc=any ')' > > ['from' any] >"""
 
     def transform(self, node, results):
         syms = self.syms