aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cryptography/x509.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cryptography/x509.py b/src/cryptography/x509.py
index 28d16853..8554aeab 100644
--- a/src/cryptography/x509.py
+++ b/src/cryptography/x509.py
@@ -190,6 +190,9 @@ class Name(object):
def __len__(self):
return len(self._attributes)
+ def __repr__(self):
+ return "<Name({0!r})>".format(self._attributes)
+
OID_SUBJECT_DIRECTORY_ATTRIBUTES = ObjectIdentifier("2.5.29.9")
OID_SUBJECT_KEY_IDENTIFIER = ObjectIdentifier("2.5.29.14")