diff options
author | Dwayne Litzenberger <dlitz@dlitz.net> | 2014-06-22 03:06:01 -0700 |
---|---|---|
committer | Dwayne Litzenberger <dlitz@dlitz.net> | 2014-06-22 04:07:24 -0700 |
commit | 0ac94701bb52fef566f96ce43eb8db6befee9b60 (patch) | |
tree | cf99cd3ce278d02631a4bb9cecbbf4c6589f9fdb | |
parent | 453f45c494d21dac7b08b49e81963f7eb4c33e0f (diff) | |
download | pycrypto-0ac94701bb52fef566f96ce43eb8db6befee9b60.tar.gz |
Fix BytesWarning when running with "python3 -bb"
-rw-r--r-- | lib/Crypto/SelfTest/Hash/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Crypto/SelfTest/Hash/common.py b/lib/Crypto/SelfTest/Hash/common.py index 2b3cbc3..2e1a107 100644 --- a/lib/Crypto/SelfTest/Hash/common.py +++ b/lib/Crypto/SelfTest/Hash/common.py @@ -235,7 +235,7 @@ def make_hash_tests(module, module_name, test_data, digest_size, oid=None): if len(row) < 3: description = repr(input) else: - description = row[2].encode('latin-1') + description = row[2] name = "%s #%d: %s" % (module_name, i+1, description) tests.append(HashSelfTest(module, name, expected, input)) name = "%s #%d: digest_size" % (module_name, i+1) |