diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2015-02-19 13:56:50 -0800 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2015-02-19 13:56:50 -0800 |
commit | f9574235241382000cfcd06931fa2286aaad1ba8 (patch) | |
tree | 63ea92ae8558cf3549bb71d0037771450191e453 | |
parent | bae5a64971c70ef25b0e9f6346cf474ca3808180 (diff) | |
download | cryptography-f9574235241382000cfcd06931fa2286aaad1ba8.tar.gz cryptography-f9574235241382000cfcd06931fa2286aaad1ba8.tar.bz2 cryptography-f9574235241382000cfcd06931fa2286aaad1ba8.zip |
Simplify x509.Name.get_attributes_for_oid
-rw-r--r-- | src/cryptography/x509.py | 2 |
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): |