mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-03 03:36:44 +00:00
call super properly; docstring
This commit is contained in:
parent
2415058dd5
commit
71f96c9c9e
@ -39,7 +39,7 @@ class AddOptions(BaseOptions):
|
||||
)
|
||||
|
||||
def getSynopsis(self):
|
||||
return "{} add NAME PUBLIC_KEY".format(BaseOptions.getSynopsis())
|
||||
return "{} add NAME PUBLIC_KEY".format(super(AddOptions, self).getSynopsis())
|
||||
|
||||
def parseArgs(self, *args, **kw):
|
||||
BaseOptions.parseArgs(self, **kw)
|
||||
@ -128,7 +128,13 @@ class GridManagerOptions(BaseOptions):
|
||||
|
||||
|
||||
def _create_gridmanager():
|
||||
return _GridManager(ed25519.SigningKey(os.urandom(32)), {})
|
||||
"""
|
||||
:return: an object providing the GridManager interface initialized
|
||||
with a new random keypair
|
||||
"""
|
||||
private_key_bytes, public_key_bytes = keyutil.make_keypair()
|
||||
secret_key, public_key_bytes = keyutil.parse_privkey(private_key_bytes)
|
||||
return _GridManager(secret_key, {})
|
||||
|
||||
def _create(gridoptions, options):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user