Js2Py
Js2Py copied to clipboard
Warnings in Python 3.8
- Deprecation warning due to invalid escape sequences. It can be fixed by raw strings or escaping them again.
- Syntax warning over comparison of literals using is
find . -iname '*py' | grep -Ev 'setup|rdf4' | xargs -P4 -I{} python3.8 -Wall -m py_compile {}
./js2py/legecy_translators/constants.py:240: DeprecationWarning: invalid escape sequence \d
"""this function parses the string just like javascript
./js2py/internals/opcodes.py:801: SyntaxWarning: "is" with a literal. Did you mean "=="?
if not issubclass(globals()[g], OP_CODE) or g is 'OP_CODE':