summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/caja-python.c2
1 files changed, 1 insertions, 1 deletions
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();