Closed QiuleiWang closed 2 years ago
The report would be more useful with the full error message, including file and location!
This could be a Python 2 / 3 conversion issue; if strdata
is bytes, then it’s already a sequence of bytes, no need for ord
.
I solved the problem because my parameter type is wrong, ast.parse(str(lua_content, encoding = "utf8"))
TypeError: ord() expected string of length 1, but int found