We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 121d9ee + dc6c4ee commit 364e5f1Copy full SHA for 364e5f1
tools/board_stubs/build_board_specific_stubs/board_stub_builder.py
@@ -17,9 +17,12 @@ def get_board_pins(pin_filename):
17
if line.strip()[0:2] == "//":
18
continue
19
20
- search = re.search(r"MP_ROM_QSTR\(MP_QSTR_(.*?)\), MP_ROM_PTR", line)
+ # \s* means any amount of whitespaces (no whitespaces allowed too)
21
+ # related issue: https://github.com/adafruit/circuitpython/issues/9407
22
+
23
+ search = re.search(r"MP_ROM_QSTR\(MP_QSTR_(.*?)\),\s*MP_ROM_PTR", line)
24
if search is None:
- search = re.search(r"MP_OBJ_NEW_QSTR\(MP_QSTR_(.*?)\), MP_ROM_PTR", line)
25
+ search = re.search(r"MP_OBJ_NEW_QSTR\(MP_QSTR_(.*?)\),\s*MP_ROM_PTR", line)
26
27
28
0 commit comments