From f9574235241382000cfcd06931fa2286aaad1ba8 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Thu, 19 Feb 2015 13:56:50 -0800 Subject: Simplify x509.Name.get_attributes_for_oid --- src/cryptography/x509.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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): -- cgit v1.2.3