summaryrefslogtreecommitdiff
path: root/keys.py
diff options
context:
space:
mode:
Diffstat (limited to 'keys.py')
-rw-r--r--keys.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/keys.py b/keys.py
index 33cb98e..d15af08 100644
--- a/keys.py
+++ b/keys.py
@@ -35,7 +35,7 @@ class PublicKey(object):
35 def sign(self, data): 35 def sign(self, data):
36 return self.instance.sign(data) 36 return self.instance.sign(data)
37 37
38 @property 38 @classmethod
39 def from_string(cls, key): 39 def from_string(cls, key):
40 """ 40 """
41 Loads an RFC 4716 formatted public key. 41 Loads an RFC 4716 formatted public key.
@@ -58,7 +58,7 @@ class PublicKey(object):
58 58
59 return pubkey 59 return pubkey
60 60
61 @property 61 @classmethod
62 def from_file(cls, filename): 62 def from_file(cls, filename):
63 fp = open(filename) 63 fp = open(filename)
64 try: 64 try: