Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
G
gracedb-client
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
4
Issues
4
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
3
Merge Requests
3
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lscsoft
gracedb-client
Commits
99651820
Verified
Commit
99651820
authored
Aug 26, 2019
by
Tanner Prestegard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
utils: remove unused cleanListInput
parent
f89f8971
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
14 deletions
+0
-14
ligo/gracedb/utils.py
ligo/gracedb/utils.py
+0
-14
No files found.
ligo/gracedb/utils.py
View file @
99651820
...
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment