Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxWarning: invalid escape sequence #50

Open
DigelHost opened this issue May 15, 2024 · 0 comments
Open

SyntaxWarning: invalid escape sequence #50

DigelHost opened this issue May 15, 2024 · 0 comments

Comments

@DigelHost
Copy link
Contributor

/usr/share/pwngdb/pwngdb.py:406: SyntaxWarning: invalid escape sequence '\.'
  data = re.search(".*libc.*\.so",infomap)
/usr/share/pwngdb/pwngdb.py:416: SyntaxWarning: invalid escape sequence '\.'
  data = re.search(".*ld.*\.so",infomap)
/usr/share/pwngdb/pwngdb.py:426: SyntaxWarning: invalid escape sequence '\]'
  data = re.search(".*heap\]",infomap)
/usr/share/pwngdb/pwngdb.py:610: SyntaxWarning: invalid escape sequence '\%'
  print("The index of format argument : %d (\"\%%%d$p\")" % (idx,idx - 1))
/usr/share/pwngdb/pwngdb.py:614: SyntaxWarning: invalid escape sequence '\%'
  print("The index of format argument : %d (\"\%%%d$p\")" % (idx,idx - 1))
/usr/share/pwngdb/angelheap/angelheap.py:371: SyntaxWarning: invalid escape sequence '\.'
  data = re.search(".*libc-.*\.so",infomap)

Since Python3.12, a backslash-character pair that is not a valid escape sequence now generates a SyntaxWarning, instead of DeprecationWarning. It can be fixed by using raw strings.
e.g. data = re.search(r".*libc.*\.so",infomap)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant