summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2024-02-12 11:56:24 +1100
committerDamien George <damien@micropython.org>2024-02-12 11:56:24 +1100
commit0432f73206a0d0ff5cef5dc6146f18439079f6f3 (patch)
tree7d2d9efefb3c45e09e713ddbd06c6558f92bcbd5
parentabe43fe6873bf78c98634eac74de646f70ec0d32 (diff)
tools/mpy-tool.py: Fix static qstrs when freezing without qstr header.
It's rare to freeze .mpy files without specifying a qstr header from a firmware build, but it can be useful for testing, eg `mpy-tool.py -f test.mpy`. Fix this case so static qstrs are properly excluded from the frozen qstr list. Signed-off-by: Damien George <damien@micropython.org>
-rwxr-xr-xtools/mpy-tool.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mpy-tool.py b/tools/mpy-tool.py
index 519462ec8..a656cccd6 100755
--- a/tools/mpy-tool.py
+++ b/tools/mpy-tool.py
@@ -1795,7 +1795,7 @@ def main():
else:
config.MICROPY_QSTR_BYTES_IN_LEN = 1
config.MICROPY_QSTR_BYTES_IN_HASH = 1
- firmware_qstr_idents = set(qstrutil.static_qstr_list)
+ firmware_qstr_idents = set(qstrutil.static_qstr_list_ident)
# Create initial list of global qstrs.
global_qstrs = GlobalQStrList()