diff options
| author | Angus Gratton <angus@redyak.com.au> | 2023-08-09 19:08:44 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2023-08-16 16:16:44 +1000 |
| commit | 1a5c9b9da4f16f5f7bd91c3420022d4ec0e6fa1a (patch) | |
| tree | fc73fa5110c6269062c677ff6d0450bf1a80a6e7 | |
| parent | b8189d039d0a9cbda54a7cab8cf12a0aee9603a0 (diff) | |
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>
| -rwxr-xr-x | tools/mpy-tool.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mpy-tool.py b/tools/mpy-tool.py index a5112de9a..5ef69b267 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) |
