From 584b8434872322a9f617831742cc6b15977ecfbc Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Thu, 10 Nov 2016 21:01:12 -0500 Subject: pep8: fix style errors reported by pycodestyle 2.1.0 pycodestyle 2.1.0 is in Ubuntu zesty, and complained about the changes made here. Simple style changes. This makes 'make pep8' pass again when built in a zesty build system with proposed enabled. --- tools/hacking.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tools') diff --git a/tools/hacking.py b/tools/hacking.py index 716c1154..2d366a0a 100755 --- a/tools/hacking.py +++ b/tools/hacking.py @@ -156,6 +156,7 @@ def add_cloud(): if name.startswith("cloud_"): exec("pep8.%s = %s" % (name, name)) + if __name__ == "__main__": # NOVA based 'hacking.py' error codes start with an N pep8.ERRORCODE_REGEX = re.compile(r'[EWN]\d{3}') -- cgit v1.2.3