diff options
author | Jacob Beck <jbeck@colorado.edu> | 2014-10-14 21:37:45 -0600 |
---|---|---|
committer | Jacob Beck <jbeck@colorado.edu> | 2014-10-14 21:37:45 -0600 |
commit | 5fbd4e3b6fcdc9edc04f84134d0ae76f349854a7 (patch) | |
tree | 88e9d9b51477ae21d3c906017b6c377e102e325b /paramiko/dsskey.py | |
parent | d9caab12578c242294aea95c7ad3dada361c4455 (diff) | |
download | paramiko-5fbd4e3b6fcdc9edc04f84134d0ae76f349854a7.tar.gz |
Converted all staticmethod/classmethod instances to decorators.
Diffstat (limited to 'paramiko/dsskey.py')
-rw-r--r-- | paramiko/dsskey.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/dsskey.py b/paramiko/dsskey.py index 1901596d..d7dd6275 100644 --- a/paramiko/dsskey.py +++ b/paramiko/dsskey.py @@ -154,6 +154,7 @@ class DSSKey (PKey): def write_private_key(self, file_obj, password=None): self._write_private_key('DSA', file_obj, self._encode_key(), password) + @staticmethod def generate(bits=1024, progress_func=None): """ Generate a new private DSS key. This factory function can be used to @@ -169,7 +170,6 @@ class DSSKey (PKey): key = DSSKey(vals=(dsa.p, dsa.q, dsa.g, dsa.y)) key.x = dsa.x return key - generate = staticmethod(generate) ### internals... |