diff options
author | hut <hut@lepus.uberspace.de> | 2016-02-10 02:47:32 +0100 |
---|---|---|
committer | hut <hut@lepus.uberspace.de> | 2016-02-10 02:47:32 +0100 |
commit | 17aa0b545bc1a9ac9ec1f7411ea670ad6d39097c (patch) | |
tree | c453960e8e3673d32655f375dce0ba400bb0c344 | |
parent | 8099359508357ce5c0343275c311312633bfa611 (diff) | |
download | ranger-17aa0b545bc1a9ac9ec1f7411ea670ad6d39097c.tar.gz |
ext.rifle: don't complain about empty lines in rifle.conf
-rwxr-xr-x | ranger/ext/rifle.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/ext/rifle.py b/ranger/ext/rifle.py index afc0b558..a8d8bee7 100755 --- a/ranger/ext/rifle.py +++ b/ranger/ext/rifle.py @@ -157,9 +157,9 @@ class Rifle(object): lineno = 0 for line in f: lineno += 1 - if line.startswith('#') or line == '\n': - continue line = line.strip() + if line.startswith('#') or line == '': + continue try: if self.delimiter1 not in line: raise Exception("Line without delimiter") |