From 820421c9b52272180f75d9f3130f311cd5b13797 Mon Sep 17 00:00:00 2001 From: William Roberts Date: Tue, 13 Dec 2016 19:12:35 -0800 Subject: [PATCH] fsconfig: fix style formating with yapf A few changes got introduced that yapf re-styles. To make it easy, keep this file formated to: yapf -i --style=google fs_config_generator.py Test: run unit tests Change-Id: I3160b92d7fd07a4d315dde59f1d20fe4c7587da1 Signed-off-by: William Roberts --- tools/fs_config/fs_config_generator.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/fs_config/fs_config_generator.py b/tools/fs_config/fs_config_generator.py index 7f1ec3db5..c76e8f4c8 100755 --- a/tools/fs_config/fs_config_generator.py +++ b/tools/fs_config/fs_config_generator.py @@ -286,6 +286,7 @@ class AIDHeaderParser(object): """ for lineno, line in enumerate(aid_file): + def error_message(msg): """Creates an error message with the current parsing state.""" return 'Error "{}" in file: "{}" on line: {}'.format( @@ -307,8 +308,9 @@ class AIDHeaderParser(object): for x in AIDHeaderParser._AID_SKIP_RANGE): self._handle_aid(identifier, value) except ValueError as exception: - sys.exit(error_message( - '{} for "{}"'.format(exception, identifier))) + sys.exit( + error_message('{} for "{}"'.format(exception, + identifier))) def _handle_aid(self, identifier, value): """Handle an AID C #define.