summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@hut.pm>2017-07-07 00:57:31 +0200
committerhut <hut@hut.pm>2017-07-07 02:42:50 +0200
commitc46b6770b66edc77169da3a399f093f9ec81ab62 (patch)
tree887e4708d9e1242b9742c60e75bfaeb15fa9be7b
parent3788a8345b35f65dd365719d772d8ce6add5783d (diff)
downloadranger-c46b6770b66edc77169da3a399f093f9ec81ab62.tar.gz
container.fsobject: more readable attribute initialization
-rw-r--r--ranger/container/fsobject.py68
1 files changed, 34 insertions, 34 deletions
diff --git a/ranger/container/fsobject.py b/ranger/container/fsobject.py
index d24a01ce..6320d3d7 100644
--- a/ranger/container/fsobject.py
+++ b/ranger/container/fsobject.py
@@ -49,40 +49,40 @@ def safe_path(path):
 
 class FileSystemObject(  # pylint: disable=too-many-instance-attributes
         FileManagerAware, SettingsAware):
-    (basename,
-     relative_path,
-     relative_path_lower,
-     dirname,
-     extension,
-     infostring,
-     path,
-     permissions,
-     stat) = (None,) * 9
-
-    (content_loaded,
-     force_load,
-
-     is_device,
-     is_directory,
-     is_file,
-     is_fifo,
-     is_link,
-     is_socket,
-
-     accessible,
-     exists,       # "exists" currently means "link_target_exists"
-     loaded,
-     marked,
-     runnable,
-     stopped,
-     tagged,
-
-     audio,
-     container,
-     document,
-     image,
-     media,
-     video) = (False,) * 21
+    basename = None
+    relative_path = None
+    relative_path_lower = None
+    dirname = None
+    extension = None
+    infostring = None
+    path = None
+    permissions = None
+    stat = None
+
+    content_loaded = False
+    force_load = False
+
+    is_device = False
+    is_directory = False
+    is_file = False
+    is_fifo = False
+    is_link = False
+    is_socket = False
+
+    accessible = False
+    exists = False  # "exists" currently means "link_target_exists"
+    loaded = False
+    marked = False
+    runnable = False
+    stopped = False
+    tagged = False
+
+    audio = False
+    container = False
+    document = False
+    image = False
+    media = False
+    video = False
 
     size = 0