I’m on python3.12. While I run this tool: https://github.com/Lucifer1993/AngelSword
I get the following error.
How can I fix this error:
pegasus@pegasus:~/Documents/AngelSword$ python3 AngelSword.py
/home/pegasus/Documents/AngelSword/AngelSword.py:35: SyntaxWarning: invalid escape sequence ' '
FLAGLET = '''
/home/pegasus/Documents/AngelSword/AngelSword.py:248: SyntaxWarning: "is not" with 'int' literal. Did you mean "!="?
if line.find(keywords) is not -1:
/home/pegasus/Documents/AngelSword/AngelSword.py:277: SyntaxWarning: "is not" with 'int' literal. Did you mean "!="?
if keyword.__str__().find(sys.argv[2].strip()) is not -1:
/home/pegasus/Documents/AngelSword/AngelSword.py:314: SyntaxWarning: "is not" with 'int' literal. Did you mean "!="?
if keyword.__str__().find(sys.argv[2].strip()) is not -1:
/home/pegasus/Documents/AngelSword/AngelSword.py:348: SyntaxWarning: "is not" with 'int' literal. Did you mean "!="?
if keyword.__str__().find(pocfuck) is not -1:
/home/pegasus/Documents/AngelSword/AngelSword.py:419: SyntaxWarning: "is not" with 'int' literal. Did you mean "!="?
if line.find("BaseVerify") is not -1:
a bytes-like object is required, not 'str'
object address : 0x75a469a76b00
object refcount : 3
object type : 0x75a46cf0bb20
object type name: TypeError
object repr : TypeError("a bytes-like object is required, not 'str'")
lost sys.stderr