From 87cd994b0477e98c976e7b321b3c1f52666ab5e0 Mon Sep 17 00:00:00 2001 From: Mehrdad Afshari Date: Tue, 2 Jan 2018 14:40:00 -0800 Subject: Upgrade yapf to 0.20.0 Upgrade yapf version to 0.20.0 and reformat Python files. --- tools/line_count/collect-history.py | 3 ++- tools/line_count/summarize-history.py | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'tools/line_count') diff --git a/tools/line_count/collect-history.py b/tools/line_count/collect-history.py index d2d5c95705..c8e33c9ed2 100755 --- a/tools/line_count/collect-history.py +++ b/tools/line_count/collect-history.py @@ -31,7 +31,8 @@ end_date = datetime.date(2017, 3, 29) for dt in daterange(start_date, end_date): dmy = dt.strftime('%Y-%m-%d') sha1 = subprocess.check_output( - ['git', 'rev-list', '-n', '1', '--before=%s' % dmy, 'master']).strip() + ['git', 'rev-list', '-n', '1', + '--before=%s' % dmy, 'master']).strip() subprocess.check_call(['git', 'checkout', sha1]) subprocess.check_call(['git', 'submodule', 'update']) subprocess.check_call(['git', 'clean', '-f', '-x', '-d']) diff --git a/tools/line_count/summarize-history.py b/tools/line_count/summarize-history.py index 80b0ed7a7e..4a085999a5 100755 --- a/tools/line_count/summarize-history.py +++ b/tools/line_count/summarize-history.py @@ -32,6 +32,7 @@ for dt in daterange(start_date, end_date): dmy = dt.strftime('%Y-%m-%d') print dmy subprocess.check_call([ - 'tools/line_count/yaml2csv.py', '-i', '../count/%s.yaml' % dmy, '-d', - dmy, '-o', '../count/%s.csv' % dmy + 'tools/line_count/yaml2csv.py', '-i', + '../count/%s.yaml' % dmy, '-d', dmy, '-o', + '../count/%s.csv' % dmy ]) -- cgit v1.2.3