summaryrefslogtreecommitdiff
path: root/openstackclient/common
diff options
context:
space:
mode:
authorTang Chen <tangchen@cn.fujitsu.com>2015-12-29 10:50:44 +0800
committerTang Chen <tangchen@cn.fujitsu.com>2015-12-29 10:50:44 +0800
commit5f0147ad12b83c01b2a098a99239b574729b99f0 (patch)
treea32e7e893bc6434bf11b3fe053d317e6813743d7 /openstackclient/common
parent8d718e9d6796b0ff115698a19f330113a80d09ef (diff)
downloadpython-openstackclient-5f0147ad12b83c01b2a098a99239b574729b99f0.tar.gz
Trivial: Remove useless string_to_bool()
string_to_bool() is not used by anyone. Furthermore, it is not well designed. It tries to convirt 't', '1' to True, which could be confused. So remove it. If we need something similar, let's make a better one. Change-Id: Ic1f63480c806bf7bcc9f541fc806eed297ddf718
Diffstat (limited to 'openstackclient/common')
-rw-r--r--openstackclient/common/utils.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/openstackclient/common/utils.py b/openstackclient/common/utils.py
index 42630d91..deab3a07 100644
--- a/openstackclient/common/utils.py
+++ b/openstackclient/common/utils.py
@@ -258,10 +258,6 @@ def sort_items(items, sort_str):
return items
-def string_to_bool(arg):
- return arg.strip().lower() in ('t', 'true', 'yes', '1')
-
-
def env(*vars, **kwargs):
"""Search for the first defined of possibly many env vars