commit | 7776960d7d340fa924d0a0af5315947178937301 | [log] [tgz] |
---|---|---|
author | Jean-Paul Calderone <exarkun@divmod.com> | Wed Apr 06 18:20:10 2011 -0400 |
committer | Jean-Paul Calderone <exarkun@divmod.com> | Wed Apr 06 18:20:10 2011 -0400 |
tree | 146865365507d79b06f556b7a028e3c3ffe29d75 | |
parent | 48659610e7e3808e23e60c8cee44be434ffdf95c [diff] |
encode text to bytes using charmap instead of ascii; charmap can actually represent every possible byte in a byte string
diff --git a/OpenSSL/test/util.py b/OpenSSL/test/util.py index 59d6a60..f6e9291 100644 --- a/OpenSSL/test/util.py +++ b/OpenSSL/test/util.py
@@ -21,7 +21,7 @@ bytes = str else: def b(s): - return s.encode("ascii") + return s.encode("charmap") bytes = bytes