From 1fb35c9e0dc716571dca894075c59f3ed60f47f3 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Sat, 11 Apr 2015 15:42:54 -0400 Subject: add repr for x509 names --- src/cryptography/x509.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/cryptography/x509.py b/src/cryptography/x509.py index 28d16853..b3f889e5 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 repr(self._attributes) + OID_SUBJECT_DIRECTORY_ATTRIBUTES = ObjectIdentifier("2.5.29.9") OID_SUBJECT_KEY_IDENTIFIER = ObjectIdentifier("2.5.29.14") -- cgit v1.2.3