about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2022-02-05 19:29:56 +0100
committertoonn <toonn@toonn.io>2022-02-05 19:29:56 +0100
commitc6b6cd73608257876f2e3b478c6183dc984181b4 (patch)
tree4d23a6ecb8d57f448c656280c30099656088e58e
parent27f783ef67c2204d538cebe0022a6580c8ea9c01 (diff)
downloadranger-c6b6cd73608257876f2e3b478c6183dc984181b4.tar.gz
Revert "vcs: Drop disappeared Pylint options"
This reverts commit 8b462b245399af66bb2b7dd31ed360548804416b.
-rw-r--r--ranger/ext/vcs/vcs.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ranger/ext/vcs/vcs.py b/ranger/ext/vcs/vcs.py
index 455bd175..5619ed19 100644
--- a/ranger/ext/vcs/vcs.py
+++ b/ranger/ext/vcs/vcs.py
@@ -88,6 +88,7 @@ class Vcs(object):  # pylint: disable=too-many-instance-attributes
         if self.root:
             if self.is_root:
                 self.rootvcs = self
+                # pylint: disable=invalid-class-object
                 self.__class__ = globals()[self.REPOTYPES[self.repotype]['class'] + 'Root']
 
                 if not os.access(self.repodir, os.R_OK):
@@ -101,6 +102,7 @@ class Vcs(object):  # pylint: disable=too-many-instance-attributes
                 if self.rootvcs is None or self.rootvcs.root is None:
                     return
                 self.rootvcs.links |= self.links
+                # pylint: disable=invalid-class-object
                 self.__class__ = globals()[self.REPOTYPES[self.repotype]['class']]
                 self.track = self.rootvcs.track