diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptography/hazmat/primitives/asymmetric/rsa.py | 2 | ||||
-rw-r--r-- | src/cryptography/x509.py | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/src/cryptography/hazmat/primitives/asymmetric/rsa.py b/src/cryptography/hazmat/primitives/asymmetric/rsa.py index 8adc7459..ae00184f 100644 --- a/src/cryptography/hazmat/primitives/asymmetric/rsa.py +++ b/src/cryptography/hazmat/primitives/asymmetric/rsa.py @@ -348,7 +348,7 @@ class RSAPublicNumbers(object): return backend.load_rsa_public_numbers(self) def __repr__(self): - return "<RSAPublicNumbers(e={0}, n={1})>".format(self._e, self._n) + return "<RSAPublicNumbers(e={0.e}, n={0.n})>".format(self) def __eq__(self, other): if not isinstance(other, RSAPublicNumbers): diff --git a/src/cryptography/x509.py b/src/cryptography/x509.py index ad7ebbe0..1d2a9489 100644 --- a/src/cryptography/x509.py +++ b/src/cryptography/x509.py @@ -90,10 +90,7 @@ class NameAttribute(object): return not self == other def __repr__(self): - return "<NameAttribute(oid={oid}, value={value!r})>".format( - oid=self.oid, - value=self.value - ) + return "<NameAttribute(oid={0.oid}, value={0.value!r})>".format(self) class ObjectIdentifier(object): |