diff options
author | Erovia <erovia@users.noreply.github.com> | 2019-10-24 20:33:58 +0200 |
---|---|---|
committer | skullydazed <skullydazed@users.noreply.github.com> | 2020-02-15 15:19:03 -0800 |
commit | 3ed1223678d3ec40f4cceecd320dd1112cdfb157 (patch) | |
tree | aba0df6ac06a6e8632b1a24fe55c0a392e841394 /lib/python/qmk/makefile.py | |
parent | d257a98cb80a90f116072c882753039b10a5e042 (diff) | |
download | qmk_firmware-3ed1223678d3ec40f4cceecd320dd1112cdfb157.tar.gz qmk_firmware-3ed1223678d3ec40f4cceecd320dd1112cdfb157.zip |
Drop bs4 dependency, update docs, minor improvements
Diffstat (limited to 'lib/python/qmk/makefile.py')
-rw-r--r-- | lib/python/qmk/makefile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/python/qmk/makefile.py b/lib/python/qmk/makefile.py index dc498adc8..6ed6b4b70 100644 --- a/lib/python/qmk/makefile.py +++ b/lib/python/qmk/makefile.py | |||
@@ -21,8 +21,8 @@ def parse_rules_mk(file_path): | |||
21 | # group(2) = operator (eg.: '=', '+=') | 21 | # group(2) = operator (eg.: '=', '+=') |
22 | # group(3) = value(s) | 22 | # group(3) = value(s) |
23 | rules_mk_regex = re.compile(r"^\s*(\w+)\s*([\?\:\+\-]?=)\s*(\S.*?)(?=\s*(\#|$))") | 23 | rules_mk_regex = re.compile(r"^\s*(\w+)\s*([\?\:\+\-]?=)\s*(\S.*?)(?=\s*(\#|$))") |
24 | mk_content = qmk.path.unicode_lines(file_path) | ||
25 | parsed_file = dict() | 24 | parsed_file = dict() |
25 | mk_content = qmk.path.file_lines(file_path) | ||
26 | for line in mk_content: | 26 | for line in mk_content: |
27 | found = rules_mk_regex.search(line) | 27 | found = rules_mk_regex.search(line) |
28 | if found: | 28 | if found: |