Skip to content

Commit

Permalink
rtfobj.py syntax error
Browse files Browse the repository at this point in the history
In python 3.12+ it is reporting the syntax error 

oletools/rtfobj.py:272
  /rpmbuild/BUILD/oletools-78b2d459a33df378a4f69ffc6c33313509cecfe4/oletools/rtfobj.py:272: SyntaxWarning: invalid escape sequence '\d'
    DECIMAL_GROUP = b'(\d{1,250})'
  • Loading branch information
xambroz authored May 4, 2024
1 parent 78b2d45 commit 8304616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oletools/rtfobj.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def get_logger(name, level=logging.CRITICAL+1):
DELIMITERS_ZeroOrMore = b'[ \\t\\r\\n\\f\\v]*'
BACKSLASH_BIN = b'\\\\bin'
# According to my tests, Word accepts up to 250 digits (leading zeroes)
DECIMAL_GROUP = b'(\d{1,250})'
DECIMAL_GROUP = b'(\\d{1,250})'

re_delims_bin_decimal = re.compile(DELIMITERS_ZeroOrMore + BACKSLASH_BIN
+ DECIMAL_GROUP + DELIMITER)
Expand Down

0 comments on commit 8304616

Please sign in to comment.