diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2015-10-20 10:31:40 -0400 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2015-10-20 10:31:40 -0400 |
commit | 99c45f19be196cb45bf8de8ea105fcb4619ab504 (patch) | |
tree | ca960f9dfce398876070992379a83cc8e155d617 /src | |
parent | 08801cd1bacf08aa4d4a833ff235574f4da15a20 (diff) | |
parent | afbe75bf4fb6c288a7e25b2c58a72ec7049f3f64 (diff) | |
download | cryptography-99c45f19be196cb45bf8de8ea105fcb4619ab504.tar.gz cryptography-99c45f19be196cb45bf8de8ea105fcb4619ab504.tar.bz2 cryptography-99c45f19be196cb45bf8de8ea105fcb4619ab504.zip |
Merge pull request #2436 from reaperhulk/extensions-repr
add __repr__ to x509.Extensions
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptography/x509/extensions.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cryptography/x509/extensions.py b/src/cryptography/x509/extensions.py index cd75ecdc..46ba5a28 100644 --- a/src/cryptography/x509/extensions.py +++ b/src/cryptography/x509/extensions.py @@ -104,6 +104,11 @@ class Extensions(object): def __len__(self): return len(self._extensions) + def __repr__(self): + return ( + "<Extensions({0})>".format(self._extensions) + ) + @utils.register_interface(ExtensionType) class AuthorityKeyIdentifier(object): |