summaryrefslogtreecommitdiff
path: root/src/leap/keymanager/__init__.py
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2014-11-10 09:50:56 -0600
committerRuben Pollan <meskio@sindominio.net>2014-11-10 13:41:28 -0600
commit22a16674ce6891de5ea0a9cbea38ddabc9dd6e06 (patch)
tree99c14f06cebcc3f8e55bbdb5b962771244cf919f /src/leap/keymanager/__init__.py
parentd1e0322d8c12dfb1511ad0895c5fc1e0271b8a30 (diff)
Use type instead of tags to get docs in openpgp
For that that now the type is the class.__name__ instead of str(class)
Diffstat (limited to 'src/leap/keymanager/__init__.py')
-rw-r--r--src/leap/keymanager/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leap/keymanager/__init__.py b/src/leap/keymanager/__init__.py
index 53dd9a78..0ffb6fc7 100644
--- a/src/leap/keymanager/__init__.py
+++ b/src/leap/keymanager/__init__.py
@@ -134,7 +134,7 @@ class KeyManager(object):
Return key class from string representation of key type.
"""
return filter(
- lambda klass: str(klass) == ktype,
+ lambda klass: klass.__name__ == ktype,
self._wrapper_map).pop()
def _get(self, uri, data=None):