summary refs log tree commit diff stats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/plugin_chmod_keybindings.py2
-rw-r--r--examples/plugin_file_filter.py2
-rw-r--r--examples/plugin_hello_world.py2
-rw-r--r--examples/plugin_ipc.py2
-rw-r--r--examples/plugin_linemode.py2
-rw-r--r--examples/plugin_new_macro.py2
-rw-r--r--examples/plugin_new_sorting_method.py2
-rw-r--r--examples/plugin_pmount.py2
8 files changed, 8 insertions, 8 deletions
diff --git a/examples/plugin_chmod_keybindings.py b/examples/plugin_chmod_keybindings.py
index faab2345..0041a0c2 100644
--- a/examples/plugin_chmod_keybindings.py
+++ b/examples/plugin_chmod_keybindings.py
@@ -4,7 +4,7 @@
 # It could replace the ten lines in the rc.conf that create the key bindings
 # for the "chmod" command.
 
-from __future__ import (absolute_import, print_function)
+from __future__ import (absolute_import, division, print_function)
 
 import ranger.api
 
diff --git a/examples/plugin_file_filter.py b/examples/plugin_file_filter.py
index f5c474c5..df7d8c4b 100644
--- a/examples/plugin_file_filter.py
+++ b/examples/plugin_file_filter.py
@@ -5,7 +5,7 @@
 
 # Save the original filter function
 
-from __future__ import (absolute_import, print_function)
+from __future__ import (absolute_import, division, print_function)
 
 import ranger.container.directory
 
diff --git a/examples/plugin_hello_world.py b/examples/plugin_hello_world.py
index b1451be1..be21d777 100644
--- a/examples/plugin_hello_world.py
+++ b/examples/plugin_hello_world.py
@@ -3,7 +3,7 @@
 # This is a sample plugin that displays "Hello World" in ranger's console after
 # it started.
 
-from __future__ import (absolute_import, print_function)
+from __future__ import (absolute_import, division, print_function)
 
 # We are going to extend the hook "ranger.api.hook_ready", so first we need
 # to import ranger.api:
diff --git a/examples/plugin_ipc.py b/examples/plugin_ipc.py
index 99637272..c6fc60c6 100644
--- a/examples/plugin_ipc.py
+++ b/examples/plugin_ipc.py
@@ -7,7 +7,7 @@
 # Example:
 #   $ echo tab_new ~/images > /tmp/ranger-ipc.1234
 
-from __future__ import (absolute_import, print_function)
+from __future__ import (absolute_import, division, print_function)
 
 import ranger.api
 
diff --git a/examples/plugin_linemode.py b/examples/plugin_linemode.py
index 84cc57cc..52b9c60a 100644
--- a/examples/plugin_linemode.py
+++ b/examples/plugin_linemode.py
@@ -5,7 +5,7 @@
 # the linemode by typing ":linemode rot13" in ranger.  Type Mf to restore
 # the default linemode.
 
-from __future__ import (absolute_import, print_function)
+from __future__ import (absolute_import, division, print_function)
 
 import codecs
 
diff --git a/examples/plugin_new_macro.py b/examples/plugin_new_macro.py
index 0e44cdd3..cb4d7413 100644
--- a/examples/plugin_new_macro.py
+++ b/examples/plugin_new_macro.py
@@ -4,7 +4,7 @@
 # date in commands that allow macros.  You can test it with the command
 # ":shell echo %date; read"
 
-from __future__ import (absolute_import, print_function)
+from __future__ import (absolute_import, division, print_function)
 
 import time
 
diff --git a/examples/plugin_new_sorting_method.py b/examples/plugin_new_sorting_method.py
index fefeaad9..d294067e 100644
--- a/examples/plugin_new_sorting_method.py
+++ b/examples/plugin_new_sorting_method.py
@@ -3,7 +3,7 @@
 # This plugin adds the sorting algorithm called 'random'.  To enable it, type
 # ":set sort=random" or create a key binding with ":map oz set sort=random"
 
-from __future__ import (absolute_import, print_function)
+from __future__ import (absolute_import, division, print_function)
 
 from random import random
 
diff --git a/examples/plugin_pmount.py b/examples/plugin_pmount.py
index 5db85385..d7c88349 100644
--- a/examples/plugin_pmount.py
+++ b/examples/plugin_pmount.py
@@ -9,7 +9,7 @@
 # alt+shift+m <uppercase letter>         : unmount /dev/sd<letter>
 # alt+shift+n                            : list the devices
 
-from __future__ import (absolute_import, print_function)
+from __future__ import (absolute_import, division, print_function)
 
 import ranger.api