Skip to content

Commit 855e612

Browse files
monneratvkareh
authored andcommitted
Make Python statements compatible with version 2 and 3.
1 parent 047c35b commit 855e612

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎docs/Makefile.am‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ BUILT_SOURCES = \
8686
$(HTML_FILES)
8787

8888
reference/builddate.xml: $(REFERENCE_DEPS)
89-
$(PYTHON) -c 'import datetime; print datetime.date.today()' > $@
89+
$(PYTHON) -c 'import datetime; print (datetime.date.today())' > $@
9090

9191
$(HTML_FILES): $(REFERENCE_DEPS)
9292
xsltproc --nonet --xinclude -o $(BUILDDIR)/html/ \

‎src/caja-python.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ caja_python_init_python (void)
196196
}
197197

198198
debug("Sanitize the python search path");
199-
PyRun_SimpleString("import sys; sys.path = filter(None, sys.path)");
199+
PyRun_SimpleString("import sys; sys.path = list(filter(None, sys.path))");
200200
if (PyErr_Occurred())
201201
{
202202
PyErr_Print();

0 commit comments

Comments
 (0)