OSDN Git Service

fsconfig: fix style formating with yapf
authorWilliam Roberts <william.c.roberts@intel.com>
Wed, 14 Dec 2016 03:12:35 +0000 (19:12 -0800)
committerWilliam C Roberts <william.c.roberts@intel.com>
Wed, 4 Jan 2017 18:21:28 +0000 (18:21 +0000)
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>
tools/fs_config/fs_config_generator.py

index 7f1ec3d..c76e8f4 100755 (executable)
@@ -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.