summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2012-08-06 23:35:00 +0200
committerhut <hut@lavabit.com>2012-08-06 23:35:00 +0200
commitb14835a80c53a199ea54cc031ceea39b087b7e40 (patch)
tree4883f01d808ef7698101c97a590c972fbad455be /ranger
parentdfcfd112b1ebfba11a176c39366dc72ad887fd70 (diff)
downloadranger-b14835a80c53a199ea54cc031ceea39b087b7e40.tar.gz
ext.rifle: strip newline off mimetype
Diffstat (limited to 'ranger')
-rwxr-xr-xranger/ext/rifle.py2
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):