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,