Commit 830461645710c5bbd7bed652e77ca00cd4def929
Committed by
GitHub
1 parent
78b2d459
rtfobj.py syntax error
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})'
Showing
1 changed file
with
1 additions
and
1 deletions
oletools/rtfobj.py
| ... | ... | @@ -269,7 +269,7 @@ DELIMITER = b'[ \\t\\r\\n\\f\\v]' |
| 269 | 269 | DELIMITERS_ZeroOrMore = b'[ \\t\\r\\n\\f\\v]*' |
| 270 | 270 | BACKSLASH_BIN = b'\\\\bin' |
| 271 | 271 | # According to my tests, Word accepts up to 250 digits (leading zeroes) |
| 272 | -DECIMAL_GROUP = b'(\d{1,250})' | |
| 272 | +DECIMAL_GROUP = b'(\\d{1,250})' | |
| 273 | 273 | |
| 274 | 274 | re_delims_bin_decimal = re.compile(DELIMITERS_ZeroOrMore + BACKSLASH_BIN |
| 275 | 275 | + DECIMAL_GROUP + DELIMITER) | ... | ... |