diff options
-rw-r--r-- | docs/Makefile.am | 2 | ||||
-rw-r--r-- | src/caja-python.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/Makefile.am b/docs/Makefile.am index 47e8ab0..70021bc 100644 --- a/docs/Makefile.am +++ b/docs/Makefile.am @@ -86,7 +86,7 @@ BUILT_SOURCES = \ $(HTML_FILES) reference/builddate.xml: $(REFERENCE_DEPS) - $(PYTHON) -c 'import datetime; print datetime.date.today()' > $@ + $(PYTHON) -c 'import datetime; print (datetime.date.today())' > $@ $(HTML_FILES): $(REFERENCE_DEPS) xsltproc --nonet --xinclude -o $(BUILDDIR)/html/ \ 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(); |