From 0ac94701bb52fef566f96ce43eb8db6befee9b60 Mon Sep 17 00:00:00 2001 From: Dwayne Litzenberger Date: Sun, 22 Jun 2014 03:06:01 -0700 Subject: Fix BytesWarning when running with "python3 -bb" --- lib/Crypto/SelfTest/Hash/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.1