about summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorWojciech Siewierski <wojciech.siewierski@onet.pl>2018-03-04 14:20:03 +0100
committerWojciech Siewierski <wojciech.siewierski@onet.pl>2018-03-04 14:20:38 +0100
commit9b98c70088a31cfce75f5e560bcac3a351532b24 (patch)
tree64bced5b6ac51ada4d8c511cbaf40eddbdcd0a74 /ranger
parent6f8fa8b5ef21792a69066500375b3643c50decfb (diff)
downloadranger-9b98c70088a31cfce75f5e560bcac3a351532b24.tar.gz
Fix the coding style
Diffstat (limited to 'ranger')
-rw-r--r--ranger/container/settings.py2
-rw-r--r--ranger/gui/widgets/view_base.py10
2 files changed, 7 insertions, 5 deletions
diff --git a/ranger/container/settings.py b/ranger/container/settings.py
index 8b7364a2..9f54f24d 100644
--- a/ranger/container/settings.py
+++ b/ranger/container/settings.py
@@ -45,7 +45,7 @@ ALLOWED_SETTINGS = {
     'freeze_files': bool,
     'global_inode_type_filter': str,
     'hidden_filter': str,
-    'hint_collapse_threshold' : int,
+    'hint_collapse_threshold': int,
     'hostname_in_titlebar': bool,
     'idle_delay': int,
     'iterm2_font_width': int,
diff --git a/ranger/gui/widgets/view_base.py b/ranger/gui/widgets/view_base.py
index 0878ab0f..c87bdede 100644
--- a/ranger/gui/widgets/view_base.py
+++ b/ranger/gui/widgets/view_base.py
@@ -154,10 +154,12 @@ class ViewBase(Widget, DisplayableContainer):  # pylint: disable=too-many-instan
             if len(hints) > self.fm.settings.hint_collapse_threshold:
                 def first_key_in_group(group):
                     return group[0][0][0]
-                grouped_hints = [[(first_key_in_group(hint_group), "...")]
-                               if len(hint_group) > 1
-                               else hint_group
-                               for hint_group in grouped_hints]
+                grouped_hints = [
+                    [(first_key_in_group(hint_group), "...")]
+                    if len(hint_group) > 1
+                    else hint_group
+                    for hint_group in grouped_hints
+                ]
 
             # Sort by the first action in group.
             grouped_hints = sorted(grouped_hints, key=lambda g: g[0][1])