10000 chore: remove py2 holdover code (#1496) · tableau/server-client-python@607fa8b · GitHub
[go: up one dir, main page]

Skip to content

Commit 607fa8b

Browse files
authored
chore: remove py2 holdover code (#1496)
Favor list comprehensions for readability, consistency, and performance Co-authored-by: Jordan Woods <13803242+jorwoods@users.noreply.github.com>
1 parent c361f8f commit 607fa8b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tableauserverclient/server/endpoint/schedules_endpoint.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,7 @@ def add_to_schedule(
115115
) # type:ignore[arg-type]
116116

117117
results = (self._add_to(*x) for x in items)
118-
# list() is needed for python 3.x compatibility
119-
return list(filter(lambda x: not x.result, results)) # type:ignore[arg-type]
118+
return [x for x in results if not x.result]
120119

121120
def _add_to(
122121
self,

0 commit comments

Comments
 (0)
0