comparison pytouhou/utils/pe.py @ 615:d1f0bb0b7a17

Don’t inherit explicitely from object, we are not on Python 2.7 anymore. :)
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 28 Mar 2015 21:40:51 +0100
parents e15672733c93
children
comparison
equal deleted inserted replaced
614:2cf518129725 615:d1f0bb0b7a17
82 format = Struct('<8sIIIIIIHHI') 82 format = Struct('<8sIIIIIIHHI')
83 return cls._IMAGE_SECTION_HEADER(*format.unpack(file.read(format.size))) 83 return cls._IMAGE_SECTION_HEADER(*format.unpack(file.read(format.size)))
84 84
85 85
86 86
87 class PEFile(object): 87 class PEFile:
88 def __init__(self, file): 88 def __init__(self, file):
89 self.file = file 89 self.file = file
90 90
91 self.image_base = 0 91 self.image_base = 0
92 self.sections = [] 92 self.sections = []