summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2013-05-11 23:33:50 +0900
committerKali Kaneko <kali@leap.se>2013-05-11 23:33:50 +0900
commit779afe2e830a48e91a9bda6dc8cd8b35ce555ed5 (patch)
tree0519f679ee41c4de44c65f73725ffab40f618825 /src
parent8fae83a20504851845eeda5c089f2c53f8678eae (diff)
add repr method to encryption key
Diffstat (limited to 'src')
-rw-r--r--src/leap/common/keymanager/keys.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/leap/common/keymanager/keys.py b/src/leap/common/keymanager/keys.py
index 2e6bfe9..d98bd02 100644
--- a/src/leap/common/keymanager/keys.py
+++ b/src/leap/common/keymanager/keys.py
@@ -155,6 +155,16 @@ class EncryptionKey(object):
'tags': ['keymanager-key'],
})
+ def __repr__(self):
+ """
+ Representation of this class
+ """
+ return u"<%s 0x%s (%s - %s)>" % (
+ self.__class__.__name__,
+ self.key_id,
+ self.address,
+ "priv" if self.private else "publ")
+
#
# Encryption schemes