salt/utils/pycrypto.py: remove raw string formatting

This commit is contained in:
Erik Johnson 2015-08-26 23:26:07 -05:00
parent 129d27c235
commit 1b0a83b9b9

View File

@ -53,7 +53,7 @@ def gen_hash(crypt_salt=None, password=None, algorithm='sha512'):
) )
if algorithm not in hash_algorithms: if algorithm not in hash_algorithms:
raise SaltInvocationError( raise SaltInvocationError(
'Algorithm {0!r} is not supported'.format(algorithm) 'Algorithm \'{0}\' is not supported'.format(algorithm)
) )
if password is None: if password is None: