aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2015-02-12 15:00:56 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2015-02-12 16:26:08 -0600
commita498be81b54f8e4a9b07a71aabc434e372c309a6 (patch)
treedeec95bc6dcf23736affd659fdac6a3898340100 /src
parentb41c80b0cfa4fd9a14016c81557776cc01feedba (diff)
downloadcryptography-a498be81b54f8e4a9b07a71aabc434e372c309a6.tar.gz
cryptography-a498be81b54f8e4a9b07a71aabc434e372c309a6.tar.bz2
cryptography-a498be81b54f8e4a9b07a71aabc434e372c309a6.zip
add repr for x509.NameAttribute
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):