Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix SyntaxWarning in Python 3.12 (#2302)
* libcdb.py - python 3.12 Python 3.12 would complain if the \d atom is not escaped in the binary string. /usr/lib/python3.12/site-packages/pwnlib/commandline/libcdb.py:224: SyntaxWarning: invalid escape sequence '\d' libc_version = re.search(b'libc[ -](\d+\.\d+)', exe.data) * Use raw string --------- Co-authored-by: peace-maker <[email protected]>
- Loading branch information
77957b4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like raw more as well.
I believe it was failing on me when I tried, but this works python2 (rhel7/8/f39) and python3(rhel7/8/ f39)
Tested with :