summaryrefslogtreecommitdiff
path: root/tools/mpy-tool.py
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2022-05-26 11:43:46 +1000
committerDamien George <damien@micropython.org>2022-05-26 11:43:46 +1000
commit1d047617bb15e5d26013eab365f96a814841f092 (patch)
treeb0a566cce9a92fc2de2b386585d9ca180dae2a45 /tools/mpy-tool.py
parent4946dc5f8cf3c74fac91ffde5cb879d6c2f00bce (diff)
tools/mpy-tool.py: Remove obsolete unicode flag in .mpy header.
This was removed in c49d5207e9437755be364639632be31c001955a8 Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tools/mpy-tool.py')
-rwxr-xr-xtools/mpy-tool.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/mpy-tool.py b/tools/mpy-tool.py
index cbe456a80..6a22f5a40 100755
--- a/tools/mpy-tool.py
+++ b/tools/mpy-tool.py
@@ -1278,7 +1278,6 @@ def read_mpy(filename):
if header[1] != config.MPY_VERSION:
raise MPYReadError(filename, "incompatible .mpy version")
feature_byte = header[2]
- config.MICROPY_PY_BUILTINS_STR_UNICODE = (feature_byte & 2) != 0
mpy_native_arch = feature_byte >> 2
if mpy_native_arch != MP_NATIVE_ARCH_NONE:
if config.native_arch == MP_NATIVE_ARCH_NONE:
@@ -1537,7 +1536,7 @@ def merge_mpy(raw_codes, output_file):
header = bytearray(4)
header[0] = ord("M")
header[1] = config.MPY_VERSION
- header[2] = config.native_arch << 2 | config.MICROPY_PY_BUILTINS_STR_UNICODE << 1
+ header[2] = config.native_arch << 2
header[3] = config.mp_small_int_bits
merged_mpy.extend(header)