Skip to content

Commit 2b19a41

Browse files
authored
Remove unnecessary assignment
1 parent 4b3b1e2 commit 2b19a41

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pefile.py

-3
Original file line numberDiff line numberDiff line change
@@ -1003,15 +1003,12 @@ def sizeof(self):
10031003
return self.__format_length__
10041004

10051005
def __unpack__(self, data):
1006-
data = data
1007-
10081006
if len(data) > self.__format_length__:
10091007
data = data[: self.__format_length__]
10101008

10111009
# Some malware have incorrect header lengths.
10121010
# Fail gracefully if this occurs
10131011
# Buggy malware: a29b0118af8b7408444df81701ad5a7f
1014-
#
10151012
elif len(data) < self.__format_length__:
10161013
raise PEFormatError("Data length less than expected header length.")
10171014

0 commit comments

Comments
 (0)