aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cryptography/x509.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cryptography/x509.py b/src/cryptography/x509.py
index e280980b..71062588 100644
--- a/src/cryptography/x509.py
+++ b/src/cryptography/x509.py
@@ -75,6 +75,12 @@ class NameAttribute(object):
def __ne__(self, other):
return not self == other
+ def __repr__(self):
+ return "<NameAttribute(oid={oid}, value={value!r})>".format(
+ oid=self.oid,
+ value=self.value
+ )
+
class ObjectIdentifier(object):
def __init__(self, dotted_string):