Skip to content

Commit

Permalink
avoid unnecessary attribute lookups
Browse files Browse the repository at this point in the history
  • Loading branch information
leifj committed Nov 15, 2016
1 parent ade3349 commit 2504d9a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/pyeleven/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,4 @@ def _token():
if __name__ == "__main__":
app.run()

main = app.run
main = app.run
1 change: 0 additions & 1 deletion src/pyeleven/pk11.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ def __cmp__(self, other):

def find_object(self, template):
for o in self.session.findObjects(template):
logging.debug("Found pkcs11 object: %s" % o)
return o
return None

Expand Down

0 comments on commit 2504d9a

Please sign in to comment.