aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2015-02-19 13:56:50 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2015-02-19 13:56:50 -0800
commitf9574235241382000cfcd06931fa2286aaad1ba8 (patch)
tree63ea92ae8558cf3549bb71d0037771450191e453 /src
parentbae5a64971c70ef25b0e9f6346cf474ca3808180 (diff)
downloadcryptography-f9574235241382000cfcd06931fa2286aaad1ba8.tar.gz
cryptography-f9574235241382000cfcd06931fa2286aaad1ba8.tar.bz2
cryptography-f9574235241382000cfcd06931fa2286aaad1ba8.zip
Simplify x509.Name.get_attributes_for_oid
Diffstat (limited to 'src')
-rw-r--r--src/cryptography/x509.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptography/x509.py b/src/cryptography/x509.py
index 8a888d2a..8a6ecc8d 100644
--- a/src/cryptography/x509.py
+++ b/src/cryptography/x509.py
@@ -109,7 +109,7 @@ class Name(object):
self._attributes = attributes
def get_attributes_for_oid(self, oid):
- return [i for i in self._attributes if i.oid == oid]
+ return [i for i in self if i.oid == oid]
def __eq__(self, other):
if not isinstance(other, Name):