Skip to content
Permalink
Browse files

Make Python statements compatible with version 2 and 3.

  • Loading branch information...
monnerat authored and vkareh committed Jan 19, 2019
1 parent 047c35b commit 855e61271bb357b5ccd8beb5541be45ecf62a74f
Showing with 2 additions and 2 deletions.
  1. +1 −1 docs/Makefile.am
  2. +1 −1 src/caja-python.c
@@ -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/ \
@@ -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();

0 comments on commit 855e612

Please sign in to comment.
You can’t perform that action at this time.