From 6898f5d20df0da6a6461845fd340436d6a226f24 Mon Sep 17 00:00:00 2001 From: Cady_Chen Date: Wed, 16 Nov 2016 18:52:03 +0800 Subject: [PATCH] Fix "wrap functions with 2 blank lines" pep8 check Now gates are requires this pep8 rule as mandatory so until it'll be fixed merge is blocked. Change-Id: I5b1ad7ec820911b5e765e184223f786c733836a5 --- tools/cap.py | 1 + tools/check-install.py | 1 + 2 files changed, 2 insertions(+) diff --git a/tools/cap.py b/tools/cap.py index 11ecfc64e2..cd6ba56751 100755 --- a/tools/cap.py +++ b/tools/cap.py @@ -134,5 +134,6 @@ def main(): for line in cap(requirements, frozen): print(line) + if __name__ == '__main__': main() diff --git a/tools/check-install.py b/tools/check-install.py index 14fc45116b..d638c5f03c 100644 --- a/tools/check-install.py +++ b/tools/check-install.py @@ -25,5 +25,6 @@ def main(): errors += 1 return 1 if errors else 0 + if __name__ == '__main__': sys.exit(main())