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 <william.c.roberts@intel.com>
This commit is contained in:
William Roberts 2016-12-13 19:12:35 -08:00 committed by William C Roberts
parent 1a4a0a4539
commit 820421c9b5
1 changed files with 4 additions and 2 deletions

View File

@ -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.