mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
GH-129805: Clean up some changes from GH-129806 (GH-133540)
This commit is contained in:
parent
fc3e22a06c
commit
55e29a6100
2 changed files with 5 additions and 18 deletions
|
|
@ -137,11 +137,7 @@ class Hole:
|
|||
def __post_init__(self) -> None:
|
||||
self.func = _PATCH_FUNCS[self.kind]
|
||||
|
||||
def fold(
|
||||
self,
|
||||
other: typing.Self,
|
||||
body: bytes | bytearray,
|
||||
) -> typing.Self | None:
|
||||
def fold(self, other: typing.Self, body: bytearray) -> typing.Self | None:
|
||||
"""Combine two holes into a single hole, if possible."""
|
||||
instruction_a = int.from_bytes(
|
||||
body[self.offset : self.offset + 4], byteorder=sys.byteorder
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue