Commit a9ece4400b2b3023128b8eb5ff60d1064f142659

Authored by Philippe Lagadec
Committed by GitHub
2 parents cf93ba9d 7a037e70

Merge pull request #349 from comawill/pull-req/rtfobj

Fix comparsion against string
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]
... ...