aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2015-02-05 09:50:31 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2015-02-05 09:50:31 -0600
commit858b9b7050105ac7bf7da49924608d8ea0e3ec2f (patch)
treed97c2f01765d226b396c25cbd041b7efa83d51f5 /src
parentd44f9a6cb848c4dd6cc0724df5e5f5e4607a857a (diff)
downloadcryptography-858b9b7050105ac7bf7da49924608d8ea0e3ec2f.tar.gz
cryptography-858b9b7050105ac7bf7da49924608d8ea0e3ec2f.tar.bz2
cryptography-858b9b7050105ac7bf7da49924608d8ea0e3ec2f.zip
add descriptions to each OID constant, update object to instance
Diffstat (limited to 'src')
-rw-r--r--src/cryptography/x509.py4
1 files changed, 3 insertions, 1 deletions
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