Skip to content

Commit

Permalink
Use python3 class declarations (no subclassing object)
Browse files Browse the repository at this point in the history
  • Loading branch information
Grazfather committed Apr 4, 2021
1 parent ad62c68 commit ade547d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gef.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ def search_for_main_arena():
return addr


class MallocStateStruct(object):
class MallocStateStruct:
"""GEF representation of malloc_state from https://github.com/bminor/glibc/blob/glibc-2.28/malloc/malloc.c#L1658"""

def __init__(self, addr):
Expand Down Expand Up @@ -1571,7 +1571,7 @@ def flags_to_human(reg_value, value_table):
return "[{}]".format(" ".join(flags))


class Architecture(object):
class Architecture:
"""Generic metaclass for the architecture supported by GEF."""
__metaclass__ = abc.ABCMeta

Expand Down Expand Up @@ -3671,7 +3671,7 @@ def gef_on_regchanged_unhook(func):
#


class PieVirtualBreakpoint(object):
class PieVirtualBreakpoint:
"""PIE virtual breakpoint (not real breakpoint)."""

def __init__(self, set_func, vbp_num, addr):
Expand Down

0 comments on commit ade547d

Please sign in to comment.