Skip to content

Commit

Permalink
Replace base class name with super()
Browse files Browse the repository at this point in the history
In SectionStructure replace base class name with super() when calling  __init__() . Also drop the self argument to reduce boilerplate.
  • Loading branch information
j-t-1 authored Jun 30, 2024
1 parent 7368b0c commit 3830915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -1138,7 +1138,7 @@ def __init__(self, *argl, **argd):
self.VirtualAddress = None
self.SizeOfRawData = None
self.Misc_VirtualSize = None
Structure.__init__(self, *argl, **argd)
super().__init__(*argl, **argd)
self.PointerToRawData_adj = None
self.VirtualAddress_adj = None
self.section_min_addr = None
Expand Down

0 comments on commit 3830915

Please sign in to comment.