Skip to content

Commit

Permalink
Merge pull request #1680 from alex/simplification
Browse files Browse the repository at this point in the history
Simplify x509.Name.get_attributes_for_oid
  • Loading branch information
reaperhulk committed Feb 19, 2015
2 parents bae5a64 + f957423 commit fa35ef8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cryptography/x509.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def __init__(self, attributes):
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):
Expand Down

0 comments on commit fa35ef8

Please sign in to comment.