pointless strings

This commit is contained in:
Alex Grintsvayg 2017-04-25 14:23:05 -04:00
parent fd51d8ddf0
commit d6e7fde90a
2 changed files with 2 additions and 7 deletions

View file

@ -92,7 +92,6 @@ disable=
no-member, no-member,
no-self-use, no-self-use,
not-context-manager, not-context-manager,
pointless-string-statement,
protected-access, protected-access,
redefined-builtin, redefined-builtin,
redefined-outer-name, redefined-outer-name,

View file

@ -20,11 +20,9 @@ class Publisher(object):
self.certificate_id = certificate_id self.certificate_id = certificate_id
self.lbry_file = None self.lbry_file = None
"""
Create lbry file and make claim
"""
@defer.inlineCallbacks @defer.inlineCallbacks
def create_and_publish_stream(self, name, bid, claim_dict, file_path): def create_and_publish_stream(self, name, bid, claim_dict, file_path):
"""Create lbry file and make claim"""
log.info('Starting publish for %s', name) log.info('Starting publish for %s', name)
file_name = os.path.basename(file_path) file_name = os.path.basename(file_path)
with file_utils.get_read_handle(file_path) as read_handle: with file_utils.get_read_handle(file_path) as read_handle:
@ -47,11 +45,9 @@ class Publisher(object):
yield self.lbry_file.save_status() yield self.lbry_file.save_status()
defer.returnValue(claim_out) defer.returnValue(claim_out)
"""
Make a claim without creating a lbry file
"""
@defer.inlineCallbacks @defer.inlineCallbacks
def publish_stream(self, name, bid, claim_dict): def publish_stream(self, name, bid, claim_dict):
"""Make a claim without creating a lbry file"""
claim_out = yield self.make_claim(name, bid, claim_dict) claim_out = yield self.make_claim(name, bid, claim_dict)
defer.returnValue(claim_out) defer.returnValue(claim_out)