aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2015-02-19 17:26:17 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2015-02-19 17:26:17 -0600
commitfa35ef8ae841708e31e23a43167fff3fd88ae969 (patch)
tree63ea92ae8558cf3549bb71d0037771450191e453 /src
parentbae5a64971c70ef25b0e9f6346cf474ca3808180 (diff)
parentf9574235241382000cfcd06931fa2286aaad1ba8 (diff)
downloadcryptography-fa35ef8ae841708e31e23a43167fff3fd88ae969.tar.gz
cryptography-fa35ef8ae841708e31e23a43167fff3fd88ae969.tar.bz2
cryptography-fa35ef8ae841708e31e23a43167fff3fd88ae969.zip
Merge pull request #1680 from alex/simplification
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):