Merge "Using common method 'bool_from_string' from oslo strutils"

This commit is contained in:
Jenkins 2014-02-13 14:41:23 +00:00 committed by Gerrit Code Review
commit 80ef7644c1

View File

@ -135,13 +135,6 @@ def isunauthenticated(f):
return getattr(f, 'unauthenticated', False)
def string_to_bool(arg):
if isinstance(arg, bool):
return arg
return arg.strip().lower() in ('t', 'true', 'yes', '1')
def hash_signed_token(signed_text):
hash_ = hashlib.md5()
hash_.update(signed_text)