tools/mpy-tool.py: Ignore linter failure in Python 2 compatibility code.

Found by Ruff checking F821.

Signed-off-by: Angus Gratton <angus@redyak.com.au>
This commit is contained in:
Angus Gratton 2023-08-09 19:08:44 +10:00 committed by Damien George
parent b8189d039d
commit 1a5c9b9da4
1 changed files with 1 additions and 1 deletions

View File

@ -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)