Skip to content

Commit

Permalink
Oops, revert code disabled by default
Browse files Browse the repository at this point in the history
  • Loading branch information
vstinner committed Nov 8, 2022
1 parent ab73c8b commit 34a1daa
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions hachoir/parser/program/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,10 +529,9 @@ def validate(self):
offset = 12
else:
offset = 8
if 0:
value = self.stream.readBits(offset * 8, 7, self.endian)
if value != ord(b'c'):
return "First object bytecode is not code"
value = self.stream.readBits(offset * 8, 7, self.endian)
if value != ord(b'c'):
return "First object bytecode is not code"
return True

def getVersion(self):
Expand Down

0 comments on commit 34a1daa

Please sign in to comment.