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)
|
args.append(arg)
|
||||||
return args
|
return args
|
||||||
|
|
||||||
def get_doc_string(self, doc):
|
@staticmethod
|
||||||
|
def get_doc_string(doc):
|
||||||
if doc:
|
if doc:
|
||||||
return f'\n{INDENT}"""\n{indent(fill(doc, 100), INDENT)}\n{INDENT}"""'
|
return f'\n{INDENT}"""\n{indent(fill(doc, 100), INDENT)}\n{INDENT}"""'
|
||||||
return ""
|
return ""
|
||||||
|
@ -139,7 +140,7 @@ def analyze():
|
||||||
print(f' - {error}')
|
print(f' - {error}')
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
def main():
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
parser.add_argument("action", choices=['generate', 'analyze'])
|
parser.add_argument("action", choices=['generate', 'analyze'])
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
@ -147,3 +148,7 @@ if __name__ == "__main__":
|
||||||
analyze()
|
analyze()
|
||||||
elif args.action == "generate":
|
elif args.action == "generate":
|
||||||
generate(sys.stdout)
|
generate(sys.stdout)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
|
|
Loading…
Reference in a new issue