Skip to content

Commit

Permalink
utils/checkpackagelib: CommentsMenusPackagesOrder: rename variable 'm'
Browse files Browse the repository at this point in the history
Rename variable 'm' for better readability.

Signed-off-by: Jerzy Grzegorek <[email protected]>
Cc: Arnout Vandecappelle (Essensium/Mind) <[email protected]>
Reviewed-by: Ricardo Martincoski <[email protected]>
Signed-off-by: Thomas Petazzoni <[email protected]>
  • Loading branch information
Jerzy Grzegorek authored and tpetazzoni committed Sep 25, 2019
1 parent 6cf04ab commit dd99dc5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions utils/checkpackagelib/lib_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ def check_line(self, lineno, text):
"package/Config.in.host"]:
return

m = re.match(r'^\s*source ".*/([^/]*)/Config.in(.host)?"', text)
source_line = re.match(r'^\s*source ".*/([^/]*)/Config.in(.host)?"', text)

if text.startswith("comment ") or text.startswith("if ") or \
text.startswith("menu "):

Expand Down Expand Up @@ -113,9 +114,9 @@ def check_line(self, lineno, text):
elif text.startswith("endmenu"):
self.state = self.state[:-5]

elif m:
elif source_line:
level = self.get_level()
new_package = m.group(1)
new_package = source_line.group(1)

# We order _ before A, so replace it with .
new_package_ord = new_package.replace('_', '.')
Expand Down

0 comments on commit dd99dc5

Please sign in to comment.