Ran autopep8.
This commit is contained in:
parent
7ef02a7469
commit
07b43c6929
|
@ -578,6 +578,7 @@ class CppCheckFormatter(argparse.HelpFormatter):
|
||||||
'''
|
'''
|
||||||
Properly formats multiline argument helps
|
Properly formats multiline argument helps
|
||||||
'''
|
'''
|
||||||
|
|
||||||
def _split_lines(self, text, width):
|
def _split_lines(self, text, width):
|
||||||
# this is the RawTextHelpFormatter._split_lines
|
# this is the RawTextHelpFormatter._split_lines
|
||||||
if text.startswith('R|'):
|
if text.startswith('R|'):
|
||||||
|
@ -592,10 +593,10 @@ def ArgumentParser():
|
||||||
parser = argparse.ArgumentParser(formatter_class=CppCheckFormatter)
|
parser = argparse.ArgumentParser(formatter_class=CppCheckFormatter)
|
||||||
parser.add_argument('-t', '--template', metavar='<text>',
|
parser.add_argument('-t', '--template', metavar='<text>',
|
||||||
default='{callstack}: ({severity}) {message}',
|
default='{callstack}: ({severity}) {message}',
|
||||||
help="R|Format the error messages. E.g.\n" \
|
help="R|Format the error messages. E.g.\n"
|
||||||
"'{file}:{line},{severity},{id},{message}' or\n" \
|
"'{file}:{line},{severity},{id},{message}' or\n"
|
||||||
"'{file}({line}):({severity}) {message}' or\n" \
|
"'{file}({line}):({severity}) {message}' or\n"
|
||||||
"'{callstack} {message}'\n" \
|
"'{callstack} {message}'\n"
|
||||||
"Pre-defined templates: gcc, vs, edit")
|
"Pre-defined templates: gcc, vs, edit")
|
||||||
return parser
|
return parser
|
||||||
|
|
||||||
|
|
|
@ -55,4 +55,3 @@ for rev in range(rev1,rev2):
|
||||||
f.write('\nREV ' + str(rev) + '\n')
|
f.write('\nREV ' + str(rev) + '\n')
|
||||||
f.write(comm[0].decode('utf-8'))
|
f.write(comm[0].decode('utf-8'))
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue