From e613e5d8d922d7617409b878b3c2450eb9d21877 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Sat, 11 Apr 2015 15:52:04 -0400 Subject: let's make that repr actually good --- src/cryptography/x509.py | 2 +- tests/test_x509.py | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/cryptography/x509.py b/src/cryptography/x509.py index b3f889e5..a50c0555 100644 --- a/src/cryptography/x509.py +++ b/src/cryptography/x509.py @@ -191,7 +191,7 @@ class Name(object): return len(self._attributes) def __repr__(self): - return repr(self._attributes) + return "".format(self._attributes) OID_SUBJECT_DIRECTORY_ATTRIBUTES = ObjectIdentifier("2.5.29.9") diff --git a/tests/test_x509.py b/tests/test_x509.py index 7e7d4dd9..d8a4cc02 100644 --- a/tests/test_x509.py +++ b/tests/test_x509.py @@ -615,7 +615,8 @@ class TestName(object): ]) assert repr(name) == ( - "[, value='cryptography.io')>, , value='PyCA')>]" + ", value='cryptography.io')>, , value='PyCA')>])" + ">" ) -- cgit v1.2.3