summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2016-12-05 20:35:31 +0100
committerhut <hut@lepus.uberspace.de>2016-12-05 20:35:31 +0100
commit4b1635d6e282c41ff974ae4265d47f56f459f577 (patch)
tree797f3132eba92c169daedf132bde4946c850e3f2
parenta0c96c634d14f3d40bf4b06d8a6f23dd431c91b8 (diff)
parent3964c22d7564bf8b928e32a1c409c3267c743ea8 (diff)
downloadranger-4b1635d6e282c41ff974ae4265d47f56f459f577.tar.gz
Merge branch 'trailing_space_fix' of https://github.com/vlad7777/ranger
-rw-r--r--ranger/core/actions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index 7bb0ef11..297f5c8e 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -350,7 +350,7 @@ class Actions(FileManagerAware, SettingsAware):
         log.debug("Sourcing config file '{0}'".format(filename))
         with open(filename, 'r') as f:
             for line in f:
-                line = line.lstrip().rstrip("\r\n")
+                line = line.strip(" \r\n")
                 if line.startswith("#") or not line.strip():
                     continue
                 try: