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
|
|
@ -119,7 +119,7 @@ def _handle_section(self, section: _S, group: _stencils.StencilGroup) -> None:
|
|||
raise NotImplementedError(type(self))
|
||||
|
||||
def _handle_relocation(
|
||||
self, base: int, relocation: _R, raw: bytes | bytearray
|
||||
self, base: int, relocation: _R, raw: bytearray
|
||||
) -> _stencils.Hole:
|
||||
raise NotImplementedError(type(self))
|
||||
|
||||
|
|
@ -297,10 +297,7 @@ def _unwrap_dllimport(self, name: str) -> tuple[_stencils.HoleValue, str | None]
|
|||
return _stencils.symbol_to_value(name)
|
||||
|
||||
def _handle_relocation(
|
||||
self,
|
||||
base: int,
|
||||
relocation: _schema.COFFRelocation,
|
||||
raw: bytes | bytearray,
|
||||
self, base: int, relocation: _schema.COFFRelocation, raw: bytearray
|
||||
) -> _stencils.Hole:
|
||||
match relocation:
|
||||
case {
|
||||
|
|
@ -410,10 +407,7 @@ def _handle_section(
|
|||
}, section_type
|
||||
|
||||
def _handle_relocation(
|
||||
self,
|
||||
base: int,
|
||||
relocation: _schema.ELFRelocation,
|
||||
raw: bytes | bytearray,
|
||||
self, base: int, relocation: _schema.ELFRelocation, raw: bytearray
|
||||
) -> _stencils.Hole:
|
||||
symbol: str | None
|
||||
match relocation:
|
||||
|
|
@ -492,10 +486,7 @@ def _handle_section(
|
|||
stencil.holes.append(hole)
|
||||
|
||||
def _handle_relocation(
|
||||
self,
|
||||
base: int,
|
||||
relocation: _schema.MachORelocation,
|
||||
raw: bytes | bytearray,
|
||||
self, base: int, relocation: _schema.MachORelocation, raw: bytearray
|
||||
) -> _stencils.Hole:
|
||||
symbol: str | None
|
||||
match relocation:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue