Skip to content

Commit 3a55470

Browse files
committed
python3: convert map object to a list
In Python 2.x map() returns a list and in Python 3.x map() returns an iterable object. To make code compatible with both versions map() wrapped by list(). Part of #20
1 parent 77a2c6c commit 3a55470

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/app_server.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,8 @@ def is_correct(run):
241241

242242
test_names = sorted(glob.glob(os.path.join(suite_path, "*.test.lua")))
243243
test_names = Server.exclude_tests(test_names, test_suite.args.exclude)
244-
test_names = sum(map((lambda x: patterned(x, test_suite.args.tests)),
245-
test_names), [])
244+
test_names = sum(list(map((lambda x: patterned(x, test_suite.args.tests)),
245+
test_names)), [])
246246
tests = []
247247

248248
for test_name in test_names:

0 commit comments

Comments
 (0)