about summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2020-06-28 22:24:19 +0200
committertoonn <toonn@toonn.io>2020-07-05 15:23:45 +0200
commit6a871101331b9b6ea19958946cfd4f5845505d38 (patch)
treea3ac9bacf3c276c614042f9a740a5c612b79e638 /ranger
parentd68f37c88fc7891562d8f509f53854ebd86c56fc (diff)
downloadranger-6a871101331b9b6ea19958946cfd4f5845505d38.tar.gz
Implement python 2 compatibility checks
We have been stuck on pylint <2 for a long time now because it dropped
some of the python 2 lints we rely on. We maintain compatibility with
python 2.6+ and 3.5+ and a lack of lints makes especially the former
much harder. Incompatibilities had already snuck in in the form of
implicit format specs. By implementing a custom checker we can make sure
this doesn't happen again.
Diffstat (limited to 'ranger')
-rw-r--r--ranger/ext/safe_path.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ranger/ext/safe_path.py b/ranger/ext/safe_path.py
index b172b577..b2e360ea 100644
--- a/ranger/ext/safe_path.py
+++ b/ranger/ext/safe_path.py
@@ -1,6 +1,7 @@
 # This file is part of ranger, the console file manager.
 # License: GNU GPL version 3, see the file "AUTHORS" for details.
 
+from __future__ import absolute_import
 import os
 
 SUFFIX = '_'