From 855e61271bb357b5ccd8beb5541be45ecf62a74f Mon Sep 17 00:00:00 2001 From: Patrick Monnerat Date: Sat, 19 Jan 2019 01:26:26 +0100 Subject: Make Python statements compatible with version 2 and 3. --- src/caja-python.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/caja-python.c b/src/caja-python.c index 4a310a4..237e216 100644 --- a/src/caja-python.c +++ b/src/caja-python.c @@ -196,7 +196,7 @@ caja_python_init_python (void) } debug("Sanitize the python search path"); - PyRun_SimpleString("import sys; sys.path = filter(None, sys.path)"); + PyRun_SimpleString("import sys; sys.path = list(filter(None, sys.path))"); if (PyErr_Occurred()) { PyErr_Print(); -- cgit v1.2.1