diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2016-09-11 11:48:14 -0400 |
---|---|---|
committer | Hynek Schlawack <hs@ox.cx> | 2016-09-11 17:48:14 +0200 |
commit | e7f5198ef7bcf4dc920ed85502f1c8ca0f7f9906 (patch) | |
tree | dfa146986f7ae156ec6995606aef0adf8e0e70e4 /tests/util.py | |
parent | 51d424c399df88f68c2fb9a389843f9f847f2956 (diff) | |
download | pyopenssl-git-e7f5198ef7bcf4dc920ed85502f1c8ca0f7f9906.tar.gz |
Fixed #529 -- use the native bytes syntax (#536)
Diffstat (limited to 'tests/util.py')
-rw-r--r-- | tests/util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/util.py b/tests/util.py index 56d7154..2cab91f 100644 --- a/tests/util.py +++ b/tests/util.py @@ -24,11 +24,11 @@ from OpenSSL.crypto import Error from . import memdbg -from OpenSSL._util import ffi, lib, byte_string as b +from OpenSSL._util import ffi, lib # This is the UTF-8 encoding of the SNOWMAN unicode code point. -NON_ASCII = b("\xe2\x98\x83").decode("utf-8") +NON_ASCII = b"\xe2\x98\x83".decode("utf-8") class TestCase(TestCase): |