We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When content takes more bytes than chars, the following command wrongly encodes text:
content
content = tools.to_bytes( u"{%d+}%s%s" % (len(content), str(CRLF), content))
This code works correctly:
content = tools.to_bytes(content) len1 = tools.to_bytes(u"{%d+}" % len(content)) content = len1 + CRLF + content
The text was updated successfully, but these errors were encountered:
And also pls propagate out server message in case of error.
Sorry, something went wrong.
Also pls expose the data from putscript(). And the code can be taken from putscript() to fix checkscript().
putscript()
checkscript()
content = tools.to_bytes(content) content = tools.to_bytes("{%d+}" % len(content)) + CRLF + content
@e1fueg0 Sorry to react so lately but could you please make a PR with your modifications?
Fixed by #99? (although perhaps __prepare_content should have stayed in tools.py or be a @staticmethod.
__prepare_content
tools.py
@staticmethod
No branches or pull requests
When
content
takes more bytes than chars, the following command wrongly encodes text:This code works correctly:
The text was updated successfully, but these errors were encountered: