From df7ba81f4e89048c6a13dfded26786a7cc593762 Mon Sep 17 00:00:00 2001 From: Alex Stapleton Date: Wed, 16 Apr 2014 11:11:35 +0100 Subject: Use @six.add_metaclass(abc.ABCMeta) --- cryptography/hazmat/primitives/interfaces.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cryptography/hazmat/primitives/interfaces.py b/cryptography/hazmat/primitives/interfaces.py index ef8566bd..bec7ee7f 100644 --- a/cryptography/hazmat/primitives/interfaces.py +++ b/cryptography/hazmat/primitives/interfaces.py @@ -491,7 +491,8 @@ class CMACContext(object): """ -class EllipticCurve(six.with_metaclass(abc.ABCMeta)): +@six.add_metaclass(abc.ABCMeta) +class EllipticCurve(object): @abc.abstractproperty def name(self): """ @@ -505,7 +506,8 @@ class EllipticCurve(six.with_metaclass(abc.ABCMeta)): """ -class EllipticCurvePrivateKey(six.with_metaclass(abc.ABCMeta)): +@six.add_metaclass(abc.ABCMeta) +class EllipticCurvePrivateKey(object): @abc.abstractproperty def curve(self): """ @@ -543,7 +545,8 @@ class EllipticCurvePrivateKey(six.with_metaclass(abc.ABCMeta)): """ -class EllipticCurvePublicKey(six.with_metaclass(abc.ABCMeta)): +@six.add_metaclass(abc.ABCMeta) +class EllipticCurvePublicKey(object): @abc.abstractproperty def curve(self): """ -- cgit v1.2.3