summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhut <hut@hut.pm>2017-07-16 05:54:01 +0200
committerhut <hut@hut.pm>2017-07-16 05:54:01 +0200
commitf9f485ed3ec35291a2ea7d6ab8f7d44ffc0c403d (patch)
tree475724a207aac69c90aca89fe759eb14c9736abb
parent433a44f9bdbd8d01254559815b5dc349d44e46f8 (diff)
container.fsobject: fix failing style tests
-rw-r--r--ranger/container/fsobject.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/ranger/container/fsobject.py b/ranger/container/fsobject.py
index 3c4e7aaa..e3f02b75 100644
--- a/ranger/container/fsobject.py
+++ b/ranger/container/fsobject.py
@@ -6,7 +6,7 @@ from __future__ import (absolute_import, division, print_function)
import re
from grp import getgrgid
from os import lstat, stat
-from os.path import abspath, basename, dirname, realpath, splitext, extsep, relpath
+from os.path import abspath, basename, dirname, realpath, relpath
from pwd import getpwuid
from time import time
@@ -47,7 +47,7 @@ def safe_path(path):
return path.translate(_SAFE_STRING_TABLE)
-class FileSystemObject( # pylint: disable=too-many-instance-attributes
+class FileSystemObject( # pylint: disable=too-many-instance-attributes,too-many-public-methods
FileManagerAware, SettingsAware):
basename = None
relative_path = None
@@ -107,7 +107,7 @@ class FileSystemObject( # pylint: disable=too-many-instance-attributes
return self.relative_path.lower()
@lazy_property
- def linemode(self):
+ def linemode(self): # pylint: disable=method-hidden
# Set the line mode from fm.default_linemodes
for method, argument, linemode in self.fm.default_linemodes:
if linemode in self.linemode_dict:
@@ -136,7 +136,6 @@ class FileSystemObject( # pylint: disable=too-many-instance-attributes
self.preload = preload
self.display_data = {}
-
def __repr__(self):
return "<{0} {1}>".format(self.__class__.__name__, self.path)