pylint fix in lbry/error/generate.py
This commit is contained in:
parent
4490caa4f7
commit
d27e8cf73a
1 changed files with 7 additions and 2 deletions
|
@ -54,7 +54,8 @@ class ErrorClass:
|
|||
args.append(arg)
|
||||
return args
|
||||
|
||||
def get_doc_string(self, doc):
|
||||
@staticmethod
|
||||
def get_doc_string(doc):
|
||||
if doc:
|
||||
return f'\n{INDENT}"""\n{indent(fill(doc, 100), INDENT)}\n{INDENT}"""'
|
||||
return ""
|
||||
|
@ -139,7 +140,7 @@ def analyze():
|
|||
print(f' - {error}')
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
def main():
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("action", choices=['generate', 'analyze'])
|
||||
args = parser.parse_args()
|
||||
|
@ -147,3 +148,7 @@ if __name__ == "__main__":
|
|||
analyze()
|
||||
elif args.action == "generate":
|
||||
generate(sys.stdout)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
Loading…
Reference in a new issue