commit | f9574235241382000cfcd06931fa2286aaad1ba8 | [log] [tgz] |
---|---|---|
author | Alex Gaynor <alex.gaynor@gmail.com> | Thu Feb 19 13:56:50 2015 -0800 |
committer | Alex Gaynor <alex.gaynor@gmail.com> | Thu Feb 19 13:56:50 2015 -0800 |
tree | 63ea92ae8558cf3549bb71d0037771450191e453 | |
parent | bae5a64971c70ef25b0e9f6346cf474ca3808180 [diff] |
Simplify x509.Name.get_attributes_for_oid
diff --git a/src/cryptography/x509.py b/src/cryptography/x509.py index 8a888d2..8a6ecc8 100644 --- a/src/cryptography/x509.py +++ b/src/cryptography/x509.py
@@ -109,7 +109,7 @@ 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):