diff options
author | Donald Stufft <donald@stufft.io> | 2015-02-12 19:56:21 -0500 |
---|---|---|
committer | Donald Stufft <donald@stufft.io> | 2015-02-12 19:56:21 -0500 |
commit | cd9bdcddf7ea7fe041ffcb01965a035e64ab719e (patch) | |
tree | 0223f4fd825e1d565610e84db00a83211f7a222c /src | |
parent | a9c131789609d0d4340624435ae6ca794f225203 (diff) | |
parent | a498be81b54f8e4a9b07a71aabc434e372c309a6 (diff) | |
download | cryptography-cd9bdcddf7ea7fe041ffcb01965a035e64ab719e.tar.gz cryptography-cd9bdcddf7ea7fe041ffcb01965a035e64ab719e.tar.bz2 cryptography-cd9bdcddf7ea7fe041ffcb01965a035e64ab719e.zip |
Merge pull request #1656 from reaperhulk/nameattribute-repr
add repr for x509.NameAttribute
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptography/x509.py | 6 |
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): |