Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Always return unicode with hexdigest() #6313
This inconsistency increases the complexity of trying to support Py2 and Py3. We should always return the same type regardless of interpreter.
Adopt the Python 3 semantics, i.e. always return unicode. We are trying to write Python 3 first code, so this is the preferred solution. It also requires less boilerplate with things like string interpolation.
If we really want to be returning bytes, the docs explain we should then be using
This does not modify local variables when it does not matter.