Update tools/board_stubs/build_board_specific_stubs/board_stub_builder.py

Co-authored-by: Dan Halbert <halbert@halwitz.org>
This commit is contained in:
Pablo Martínez 2024-07-06 21:12:49 +02:00 committed by GitHub
parent 23b86b35d7
commit 28e6afca47
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20,7 +20,7 @@ def get_board_pins(pin_filename):
# (\s*) means any amount of whitespaces (no whitespaces allowed too)
# related issue: https://github.com/adafruit/circuitpython/issues/9407
search = re.search(r"MP_ROM_QSTR\(MP_QSTR_(.*?)\),(\s*)MP_ROM_PTR", line)
search = re.search(r"MP_ROM_QSTR\(MP_QSTR_(.*?)\),\s*MP_ROM_PTR", line)
if search is None:
search = re.search(r"MP_OBJ_NEW_QSTR\(MP_QSTR_(.*?)\),\s*MP_ROM_PTR", line)
if search is None: