Move everything to Python 3.6 (#8835)
This commit is contained in:
parent
5a8f59503e
commit
66d94dc22a
11 changed files with 30 additions and 32 deletions
|
@ -22,9 +22,8 @@ def cformat_run(files, all_files):
|
|||
cli.log.warn('No changes detected. Use "qmk cformat -a" to format all files')
|
||||
return False
|
||||
if files and all_files:
|
||||
cli.log.warning('Filenames passed with -a, only formatting: %s', ','.join(cli.args.files))
|
||||
# 3.6+: Can remove the str casting, python will cast implicitly
|
||||
subprocess.run(clang_format + [str(file) for file in files], check=True)
|
||||
cli.log.warning('Filenames passed with -a, only formatting: %s', ','.join(files))
|
||||
subprocess.run(clang_format + [file for file in files], check=True)
|
||||
cli.log.info('Successfully formatted the C code.')
|
||||
|
||||
except subprocess.CalledProcessError:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue