Commit 3a7acc0c authored by Sergei Lebedev's avatar Sergei Lebedev Committed by TensorFlower Gardener
Browse files

Replaced explicit __metaclass__ assignment with @six.add_metaclass

`__metaclass__ `only works for Python 2. In Python 3 it has no effect
since the metaclass syntax is

    class A(meta=abc.ABCMeta):
        ...

`@six.add_metaclass` covers both variants.

PiperOrigin-RevId: 219814202
parent fe2c534c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment