summary refs log tree commit diff stats
path: root/examples
diff options
context:
space:
mode:
authornfnty <git@nfnty.se>2016-12-18 09:38:42 +0100
committernfnty <git@nfnty.se>2017-01-17 05:59:02 +0100
commit76791a70467d7223a966aa9f12f5583b01d704a8 (patch)
tree7a2f7543d439f9d0da695c00622c7b278424d9f6 /examples
parente26d163debc9f55a89a27f94a43771526d2ff0b7 (diff)
downloadranger-76791a70467d7223a966aa9f12f5583b01d704a8.tar.gz
linting: autopep8
Diffstat (limited to 'examples')
-rw-r--r--examples/plugin_pmount.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/examples/plugin_pmount.py b/examples/plugin_pmount.py
index ba61b0e5..fe0adffb 100644
--- a/examples/plugin_pmount.py
+++ b/examples/plugin_pmount.py
@@ -22,11 +22,17 @@ def hook_init(fm):
     try:
         fm.execute_console("map {key} shell -p lsblk".format(key=LIST_MOUNTS_KEY))
         for disk in "abcdefgh":
-            fm.execute_console("map {key}{0} chain shell pmount sd{1}; cd /media/sd{1}".format(disk.upper(), disk, key=MOUNT_KEY))
-            fm.execute_console("map {key}{0} chain cd; chain shell pumount sd{1}".format(disk.upper(), disk, key=UMOUNT_KEY))
+            fm.execute_console("map {key}{0} chain shell pmount sd{1}; cd /media/sd{1}".format(
+                disk.upper(), disk, key=MOUNT_KEY))
+            fm.execute_console("map {key}{0} chain cd; chain shell pumount sd{1}".format(
+                disk.upper(), disk, key=UMOUNT_KEY))
             for part in "123456789":
-                fm.execute_console("map {key}{0}{1} chain shell pmount sd{0}{1}; cd /media/sd{0}{1}".format(disk, part, key=MOUNT_KEY))
-                fm.execute_console("map {key}{0}{1} chain cd; shell pumount sd{0}{1}".format(disk, part, key=UMOUNT_KEY))
+                fm.execute_console(
+                    "map {key}{0}{1} chain shell pmount sd{0}{1}; cd /media/sd{0}{1}".format(
+                        disk, part, key=MOUNT_KEY)
+                )
+                fm.execute_console("map {key}{0}{1} chain cd; shell pumount sd{0}{1}".format(
+                    disk, part, key=UMOUNT_KEY))
     finally:
         return old_hook_init(fm)
 ranger.api.hook_init = hook_init