From c46b6770b66edc77169da3a399f093f9ec81ab62 Mon Sep 17 00:00:00 2001 From: hut Date: Fri, 7 Jul 2017 00:57:31 +0200 Subject: container.fsobject: more readable attribute initialization --- ranger/container/fsobject.py | 68 ++++++++++++++++++++++---------------------- 1 file 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 -- cgit 1.4.1-2-gfad0