diff options
author | hut <hut@lavabit.com> | 2012-08-06 23:35:00 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2012-08-06 23:35:00 +0200 |
commit | b14835a80c53a199ea54cc031ceea39b087b7e40 (patch) | |
tree | 4883f01d808ef7698101c97a590c972fbad455be | |
parent | dfcfd112b1ebfba11a176c39366dc72ad887fd70 (diff) | |
download | ranger-b14835a80c53a199ea54cc031ceea39b087b7e40.tar.gz |
ext.rifle: strip newline off mimetype
-rwxr-xr-x | ranger/ext/rifle.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/ext/rifle.py b/ranger/ext/rifle.py index 92fbae11..fd91c1af 100755 --- a/ranger/ext/rifle.py +++ b/ranger/ext/rifle.py @@ -208,7 +208,7 @@ class Rifle(object): process = Popen(["file", "--mime-type", "-Lb", fname], stdout=PIPE, stderr=PIPE) mimetype, _ = process.communicate() - self._mimetype = mimetype.decode(ENCODING) + self._mimetype = mimetype.decode(ENCODING).strip() return self._mimetype def _build_command(self, files, action, flags): |