diff options
author | Patrick Monnerat <[email protected]> | 2019-01-19 01:26:26 +0100 |
---|---|---|
committer | Victor Kareh <[email protected]> | 2019-01-30 15:59:28 -0500 |
commit | 855e61271bb357b5ccd8beb5541be45ecf62a74f (patch) | |
tree | 734759c97e30cbdaf62484bb4d3e86fab055c5a0 /src | |
parent | 047c35bf0aaec2601d6e26e5ab479eeccc58f640 (diff) | |
download | python-caja-855e61271bb357b5ccd8beb5541be45ecf62a74f.tar.bz2 python-caja-855e61271bb357b5ccd8beb5541be45ecf62a74f.tar.xz |
Make Python statements compatible with version 2 and 3.
Diffstat (limited to 'src')
-rw-r--r-- | src/caja-python.c | 2 |
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(); |