From: William Roberts Date: Wed, 14 Dec 2016 03:12:35 +0000 (-0800) Subject: fsconfig: fix style formating with yapf X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=820421c9b52272180f75d9f3130f311cd5b13797;p=android-x86%2Fbuild.git 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 --- 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.