Skip to content

Commit c28ca05

Browse files
committed
Try to fix python 3.6 issue
1 parent 03a1887 commit c28ca05

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/shopify_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ def run_task(cls, task=None, *args):
5151

5252
# Allow unambigious abbreviations of tasks
5353
if task not in cls._tasks:
54-
matches = list(filter(lambda item: item.startswith(task), cls._tasks))
55-
if len(matches) == 1:
56-
task = matches[0]
54+
matches = filter(lambda item: item.startswith(task), cls._tasks)
55+
if len(list(matches)) == 1:
56+
task = list(matches)[0]
5757
else:
5858
sys.stderr.write('Could not find task "%s".\n' % (task))
5959

0 commit comments

Comments
 (0)