From 1a5c9b9da4f16f5f7bd91c3420022d4ec0e6fa1a Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Wed, 9 Aug 2023 19:08:44 +1000 Subject: [PATCH] tools/mpy-tool.py: Ignore linter failure in Python 2 compatibility code. Found by Ruff checking F821. Signed-off-by: Angus Gratton --- tools/mpy-tool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/mpy-tool.py b/tools/mpy-tool.py index a5112de9a1..5ef69b267a 100755 --- a/tools/mpy-tool.py +++ b/tools/mpy-tool.py @@ -35,7 +35,7 @@ if platform.python_version_tuple()[0] == "2": bytes_cons = lambda val, enc=None: bytearray(val) is_str_type = lambda o: isinstance(o, str) is_bytes_type = lambda o: type(o) is bytearray - is_int_type = lambda o: isinstance(o, int) or isinstance(o, long) + is_int_type = lambda o: isinstance(o, int) or isinstance(o, long) # noqa: F821 def hexlify_to_str(b): x = hexlify_py2(b)