From a7a55cb652bdc64954b11aa7d55f456d44622b5e Mon Sep 17 00:00:00 2001 From: llg8212 Date: Wed, 22 Jan 2014 11:51:58 +0800 Subject: Using common method 'bool_from_string' from oslo strutils Using common method 'bool_from_string' from oslo strutils to replace utils.string_to_bool. partially implements blueprint common-client-library-2 Change-Id: I22ee9c5a4b48e85606e033ab87d4adb72b665ee6 --- keystoneclient/utils.py | 7 ------- 1 file changed, 7 deletions(-) (limited to 'keystoneclient/utils.py') diff --git a/keystoneclient/utils.py b/keystoneclient/utils.py index b2e371b..26ffe8f 100644 --- a/keystoneclient/utils.py +++ b/keystoneclient/utils.py @@ -137,13 +137,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) -- cgit v1.2.1