diff options
| author | Tang Chen <tangchen@cn.fujitsu.com> | 2015-12-29 10:50:44 +0800 |
|---|---|---|
| committer | Tang Chen <tangchen@cn.fujitsu.com> | 2015-12-29 10:50:44 +0800 |
| commit | 5f0147ad12b83c01b2a098a99239b574729b99f0 (patch) | |
| tree | a32e7e893bc6434bf11b3fe053d317e6813743d7 /openstackclient/common | |
| parent | 8d718e9d6796b0ff115698a19f330113a80d09ef (diff) | |
| download | python-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.py | 4 |
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 |
