From 9965182002336b5f7b05930f30047b7683d78b2a Mon Sep 17 00:00:00 2001 From: Tanner Prestegard Date: Mon, 26 Aug 2019 10:01:04 -0500 Subject: [PATCH] utils: remove unused cleanListInput --- ligo/gracedb/utils.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/ligo/gracedb/utils.py b/ligo/gracedb/utils.py index f3a5104..fa62e45 100644 --- a/ligo/gracedb/utils.py +++ b/ligo/gracedb/utils.py @@ -38,20 +38,6 @@ def handle_str_or_list_arg(arg, arg_name): return arg -# XXX It would be nice to get rid of this if we can. -# It seems that you can pass python lists via the requests package. -# That would make putting our lists into comma-separated strings -# unnecessary. -def cleanListInput(list_arg): - stringified_list = list_arg - if isinstance(list_arg, float) or isinstance(list_arg, int): - stringified_value = str(list_arg) - return stringified_value - if not isinstance(list_arg, six.string_types): - stringified_list = ','.join(map(str, list_arg)) - return stringified_list - - # Parse a datetime object out of the openssl output. # Note that this returns a naive datetime object. class safe_netrc(netrc): -- GitLab