fix long lines

This commit is contained in:
Alex Grintsvayg 2017-01-17 12:31:48 -05:00
parent cac8267e85
commit 23872c77e9
2 changed files with 5 additions and 2 deletions

View file

@ -88,7 +88,9 @@ class HostedEncryptedFile(resource.Resource):
d.addCallback(lambda sd_hash: self._api._get_lbry_file_by_sd_hash(sd_hash)) d.addCallback(lambda sd_hash: self._api._get_lbry_file_by_sd_hash(sd_hash))
d.addCallback(lambda lbry_file: self._make_stream_producer(request, lbry_file)) d.addCallback(lambda lbry_file: self._make_stream_producer(request, lbry_file))
elif request.args['name'][0] in self._api.waiting_on.keys(): elif request.args['name'][0] in self._api.waiting_on.keys():
request.redirect(conf.settings.get_ui_address() + "/?watch=" + request.args['name'][0]) request.redirect(
conf.settings.get_ui_address() + "/?watch=" + request.args['name'][0]
)
request.finish() request.finish()
else: else:
request.redirect(conf.settings.get_ui_address()) request.redirect(conf.settings.get_ui_address())

View file

@ -99,7 +99,8 @@ class AuthJSONRPCServer(AuthorizedBase):
def __init__(self, use_authentication=None): def __init__(self, use_authentication=None):
AuthorizedBase.__init__(self) AuthorizedBase.__init__(self)
self._use_authentication = ( self._use_authentication = (
use_authentication if use_authentication is not None else conf.settings['use_auth_http']) use_authentication if use_authentication is not None else conf.settings['use_auth_http']
)
self.announced_startup = False self.announced_startup = False
self.allowed_during_startup = [] self.allowed_during_startup = []
self.sessions = {} self.sessions = {}