forked from LBRYCommunity/lbry-sdk
remove another pylint exception
This commit is contained in:
parent
50152210e4
commit
25b6fbb73e
3 changed files with 4 additions and 11 deletions
|
@ -118,7 +118,6 @@ disable=
|
|||
unnecessary-lambda,
|
||||
unused-argument,
|
||||
unused-variable,
|
||||
useless-else-on-loop,
|
||||
wildcard-import,
|
||||
wrong-import-order,
|
||||
wrong-import-position
|
||||
|
@ -137,7 +136,7 @@ output-format=text
|
|||
files-output=no
|
||||
|
||||
# Tells whether to display a full report or only the messages
|
||||
reports=yes
|
||||
reports=no
|
||||
|
||||
# Python expression which should return a note less than 10 (10 is the highest
|
||||
# note). You have access to the variables errors warning, statement which
|
||||
|
|
|
@ -239,8 +239,7 @@ class EncryptedFileManager(object):
|
|||
for l in self.lbry_files:
|
||||
if l == lbry_file:
|
||||
return l.toggle_running()
|
||||
else:
|
||||
return defer.fail(Failure(ValueError("Could not find that LBRY file")))
|
||||
return defer.fail(Failure(ValueError("Could not find that LBRY file")))
|
||||
|
||||
def _reflect_lbry_files(self):
|
||||
for lbry_file in self.lbry_files:
|
||||
|
|
|
@ -56,13 +56,8 @@ def undecorated(o):
|
|||
undecd = undecorated(cell.cell_contents)
|
||||
if undecd:
|
||||
return undecd
|
||||
else:
|
||||
return o
|
||||
else:
|
||||
return o
|
||||
return o
|
||||
|
||||
|
||||
def looks_like_a_decorator(a):
|
||||
return (
|
||||
isfunction(a) or ismethod(a) or isclass(a)
|
||||
)
|
||||
return isfunction(a) or ismethod(a) or isclass(a)
|
||||
|
|
Loading…
Reference in a new issue