mirror of https://github.com/ARMmbed/mbed-os.git
Update style
parent
7e5deaa7d0
commit
d757f35d15
|
@ -225,8 +225,10 @@ def argparse_many(fn):
|
||||||
return wrap
|
return wrap
|
||||||
|
|
||||||
def argparse_filestring_type(string) :
|
def argparse_filestring_type(string) :
|
||||||
if exists(string) : return string
|
if exists(string) :
|
||||||
else : raise argparse.ArgumentTypeError("{0} does not exist in the filesystem.".format(string))
|
return string
|
||||||
|
else :
|
||||||
|
raise argparse.ArgumentTypeError("{0}"" does not exist in the filesystem.".format(string))
|
||||||
|
|
||||||
def columnate(strings, seperator=", ", chars=80):
|
def columnate(strings, seperator=", ", chars=80):
|
||||||
col_width = max(len(s) for s in strings)
|
col_width = max(len(s) for s in strings)
|
||||||
|
|
Loading…
Reference in New Issue