Class TupleExceptClause

java.lang.Object
org.openrewrite.python.marker.TupleExceptClause
All Implemented Interfaces:
org.openrewrite.marker.Marker, org.openrewrite.rpc.RpcCodec<TupleExceptClause>

public class TupleExceptClause extends Object implements org.openrewrite.marker.Marker, org.openrewrite.rpc.RpcCodec<TupleExceptClause>
Marker indicating that a J.Try.Catch was written using the Python 2 except E, e: comma form rather than the Python 3 except E as e: form.

The default printer renders the catch as except E as e:; when this marker is present it emits the Py2 comma-based syntax instead so Python 2 sources round-trip byte-for-byte.

  • Constructor Details

    • TupleExceptClause

      public TupleExceptClause()
  • Method Details