From 97da4b0d82f0cdfe38aaa20db9eb7fe054098a1e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 3 Apr 2023 22:21:45 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- code_data/_blocks.py | 2 -- code_data/_code_data.py | 1 - code_data/_normalize.py | 1 - 3 files changed, 4 deletions(-) diff --git a/code_data/_blocks.py b/code_data/_blocks.py index f320722..a5e50c9 100644 --- a/code_data/_blocks.py +++ b/code_data/_blocks.py @@ -72,7 +72,6 @@ def bytes_to_blocks( found_constants.found_index(0) for opcode, arg, n_args, offset, next_offset in _parse_bytes(b): - # Compute the jump targets, initially with just the byte offset # Once we know all the block targets, we will transform to be block offsets processed_arg = to_arg( @@ -187,7 +186,6 @@ def blocks_to_bytes( # Iterate through all blocks and change jump instructions to offsets while changed_instruction_lengths: - current_instruction_offset = 0 # First go through and update all the instruction blocks for block_index, block in enumerate(blocks): diff --git a/code_data/_code_data.py b/code_data/_code_data.py index d9f18ce..8ade570 100644 --- a/code_data/_code_data.py +++ b/code_data/_code_data.py @@ -23,7 +23,6 @@ def to_code_data(code: CodeType) -> CodeData: - if sys.version_info >= (3, 8): posonlyargcount = code.co_posonlyargcount else: diff --git a/code_data/_normalize.py b/code_data/_normalize.py index a4b560b..9e2c443 100644 --- a/code_data/_normalize.py +++ b/code_data/_normalize.py @@ -9,7 +9,6 @@ def normalize(x: T) -> T: - if isinstance(x, CodeData): return cast( T,