Skip to content

Commit 5f0147a

Browse files
committed
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
1 parent 8d718e9 commit 5f0147a

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

openstackclient/common/utils.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,6 @@ def sort_items(items, sort_str):
258258
return items
259259

260260

261-
def string_to_bool(arg):
262-
return arg.strip().lower() in ('t', 'true', 'yes', '1')
263-
264-
265261
def env(*vars, **kwargs):
266262
"""Search for the first defined of possibly many env vars
267263

0 commit comments

Comments
 (0)