summaryrefslogtreecommitdiff
path: root/mate-extra/caja-hide/files/caja-hide-0.9.0-py3-support.patch
blob: 1e8e9994456e19bd36630c539893564ace70915a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# futurized
--- a/src/caja-hide.py
+++ b/src/caja-hide.py
@@ -1,3 +1,6 @@
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import unicode_literals
 # Caja Hide - Extension for Caja to hide files without renaming them
 # Copyright (C) 2015-2016 Caja Hide authors.
 #
@@ -14,6 +17,9 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
+from future import standard_library
+standard_library.install_aliases()
+from builtins import *
 import os
 from gi.repository import Caja, GObject
 from gettext import ngettext, locale, bindtextdomain, textdomain