aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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):