aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2015-04-03 08:16:02 -0500
committerAlex Gaynor <alex.gaynor@gmail.com>2015-04-03 08:16:02 -0500
commit43843a4369d2908aff72394c7161fccd793a35ef (patch)
tree609f15c901699802c342d24ac6c2672826eff851 /src
parentc053129791404f5f03df2c2243878f08352fb88d (diff)
parent23d10c3bda214161e3f9d02fe2ef11314ea431c7 (diff)
downloadcryptography-43843a4369d2908aff72394c7161fccd793a35ef.tar.gz
cryptography-43843a4369d2908aff72394c7161fccd793a35ef.tar.bz2
cryptography-43843a4369d2908aff72394c7161fccd793a35ef.zip
Merge pull request #1815 from reaperhulk/extkeyusage-repr
add extendedkeyusage repr
Diffstat (limited to 'src')
-rw-r--r--src/cryptography/x509.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cryptography/x509.py b/src/cryptography/x509.py
index 63c8767d..4de7428f 100644
--- a/src/cryptography/x509.py
+++ b/src/cryptography/x509.py
@@ -238,6 +238,9 @@ class ExtendedKeyUsage(object):
def __len__(self):
return len(self._usages)
+ def __repr__(self):
+ return "<ExtendedKeyUsage({0})>".format(self._usages)
+
class BasicConstraints(object):
def __init__(self, ca, path_length):