From 858b9b7050105ac7bf7da49924608d8ea0e3ec2f Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Thu, 5 Feb 2015 09:50:31 -0600 Subject: add descriptions to each OID constant, update object to instance --- src/cryptography/x509.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/cryptography/x509.py b/src/cryptography/x509.py index 7f3ace48..e280980b 100644 --- a/src/cryptography/x509.py +++ b/src/cryptography/x509.py @@ -53,7 +53,9 @@ class InvalidVersion(Exception): class NameAttribute(object): def __init__(self, oid, value): if not isinstance(oid, ObjectIdentifier): - raise TypeError("oid argument must be an ObjectIdentifier object") + raise TypeError( + "oid argument must be an ObjectIdentifier instance." + ) self._oid = oid self._value = value -- cgit v1.2.3