From d6e7fde90a3cddd288739ed2f6ef296cd3e8eee6 Mon Sep 17 00:00:00 2001 From: Alex Grintsvayg Date: Tue, 25 Apr 2017 14:23:05 -0400 Subject: [PATCH] pointless strings --- .pylintrc | 1 - lbrynet/lbrynet_daemon/Publisher.py | 8 ++------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.pylintrc b/.pylintrc index 5eb1a87f0..f1be5b61b 100644 --- a/.pylintrc +++ b/.pylintrc @@ -92,7 +92,6 @@ disable= no-member, no-self-use, not-context-manager, - pointless-string-statement, protected-access, redefined-builtin, redefined-outer-name, diff --git a/lbrynet/lbrynet_daemon/Publisher.py b/lbrynet/lbrynet_daemon/Publisher.py index baafb4098..241798a5b 100644 --- a/lbrynet/lbrynet_daemon/Publisher.py +++ b/lbrynet/lbrynet_daemon/Publisher.py @@ -20,11 +20,9 @@ class Publisher(object): self.certificate_id = certificate_id self.lbry_file = None - """ - Create lbry file and make claim - """ @defer.inlineCallbacks 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) file_name = os.path.basename(file_path) with file_utils.get_read_handle(file_path) as read_handle: @@ -47,11 +45,9 @@ class Publisher(object): yield self.lbry_file.save_status() defer.returnValue(claim_out) - """ - Make a claim without creating a lbry file - """ @defer.inlineCallbacks 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) defer.returnValue(claim_out)