summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorVlad <vlad7mail@gmail.com>2016-11-17 00:33:49 +0100
committerVlad <vlad7mail@gmail.com>2016-11-17 00:33:49 +0100
commit3964c22d7564bf8b928e32a1c409c3267c743ea8 (patch)
tree55c5a5c60e0ba9811f6476fce52fe4430d463409
parent67fb633bcc5b65ae9d20ead5c68d5b677bbc1485 (diff)
downloadranger-3964c22d7564bf8b928e32a1c409c3267c743ea8.tar.gz
Refactored.
-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 77654b1c..5775a8bb 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -346,7 +346,7 @@ class Actions(FileManagerAware, SettingsAware):
         filename = os.path.expanduser(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: