Commit 7a037e70fd9e3585248a1b3a5490998ab76e3082

Authored by Sebastian Willenborg
1 parent cf93ba9d

Fix comparsion against string (Closes #347)

Showing 1 changed file with 1 additions and 1 deletions
oletools/rtfobj.py
... ... @@ -718,7 +718,7 @@ class RtfObjParser(RtfParser):
718 718 def control_symbol(self, matchobject):
719 719 # log.debug('control symbol %r at index %Xh' % (matchobject.group(), self.index))
720 720 symbol = matchobject.group()[1:2]
721   - if symbol == "'":
  721 + if symbol == b"'":
722 722 # read the two hex digits following "\'" - which can be any characters, not just hex digits
723 723 # (because within an objdata destination, they are simply ignored)
724 724 hexdigits = self.data[self.index+2:self.index+4]
... ...