Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit abf3dbe2 authored by Elliott Hughes's avatar Elliott Hughes Committed by Gerrit Code Review
Browse files

Merge changes from topic 'fsconfig2-fixups'

* changes:
  fsconfig: fix pylint warning
  fsconfig: fix style formating with yapf
parents d0c693ff 4165c635
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -286,8 +286,10 @@ class AIDHeaderParser(object):
        """

        for lineno, line in enumerate(aid_file):

            def error_message(msg):
                """Creates an error message with the current parsing state."""
                # pylint: disable=cell-var-from-loop
                return 'Error "{}" in file: "{}" on line: {}'.format(
                    msg, self._aid_header, str(lineno))

@@ -307,8 +309,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.