From ac1d13f43dea5ebee0506dc229cd431660916c73 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Tue, 19 Feb 2019 23:38:32 -0500 Subject: Simplify string formatting (#4757) --- src/cryptography/hazmat/backends/openssl/hashes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cryptography/hazmat/backends/openssl/hashes.py') diff --git a/src/cryptography/hazmat/backends/openssl/hashes.py b/src/cryptography/hazmat/backends/openssl/hashes.py index 549fa2bf..7f9d840b 100644 --- a/src/cryptography/hazmat/backends/openssl/hashes.py +++ b/src/cryptography/hazmat/backends/openssl/hashes.py @@ -25,7 +25,7 @@ class _HashContext(object): evp_md = self._backend._evp_md_from_algorithm(algorithm) if evp_md == self._backend._ffi.NULL: raise UnsupportedAlgorithm( - "{0} is not a supported hash on this backend.".format( + "{} is not a supported hash on this backend.".format( algorithm.name), _Reasons.UNSUPPORTED_HASH ) -- cgit v1.2.3