Skip to content

Commit

Permalink
tools/mpy-tool.py: Ignore linter failure in Python 2 compatibility code.
Browse files Browse the repository at this point in the history
Found by Ruff checking F821.

Signed-off-by: Angus Gratton <angus@redyak.com.au>
  • Loading branch information
projectgus authored and dpgeorge committed Aug 16, 2023
1 parent b8189d0 commit 1a5c9b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/mpy-tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
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)
Expand Down

0 comments on commit 1a5c9b9

Please sign in to comment.