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

Commit 4165c635 authored by William Roberts's avatar William Roberts Committed by William C Roberts
Browse files

fsconfig: fix pylint warning



Fix pylint warning:
W:292,47: Cell variable lineno defined in loop (cell-var-from-loop)

For the closure function that prints the error message, we actually
want the value of modified lineno within the closure.

Test: run unit tests

Change-Id: I7d08184563d347c826ca1af7558fb8e378f151e1
Signed-off-by: default avatarWilliam Roberts <william.c.roberts@intel.com>
parent 820421c9
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -289,6 +289,7 @@ class AIDHeaderParser(object):


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