Merge pull request #1139 from lbryio/no-short-flags

Remove flags decorator from server.py as short flags are no longer used
This commit is contained in:
Jack Robison 2018-03-23 15:05:25 -04:00 committed by GitHub
commit 1aeba976da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 11 deletions

View file

@ -29,7 +29,7 @@ at anytime.
*
### Removed
*
* `flags` decorator from server.py as short flags are no longer used when using api/cli methods
*

View file

@ -2730,7 +2730,6 @@ class Daemon(AuthJSONRPCServer):
@AuthJSONRPCServer.auth_required
@defer.inlineCallbacks
@AuthJSONRPCServer.flags(no_broadcast='--no_broadcast')
def jsonrpc_wallet_prefill_addresses(self, num_addresses, amount, no_broadcast=False):
"""
Create new addresses, each containing `amount` credits

View file

@ -149,15 +149,6 @@ class AuthorizedBase(object):
return f
return _deprecated_wrapper
@staticmethod
def flags(**kwargs):
def _flag_wrapper(f):
f._flags = {}
for k, v in kwargs.iteritems():
f._flags[v] = k
return f
return _flag_wrapper
class AuthJSONRPCServer(AuthorizedBase):
"""Authorized JSONRPC server used as the base class for the LBRY API