summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-14 15:58:47 +0200
committerhut <hut@lavabit.com>2010-04-14 15:58:47 +0200
commit8c364ad44cfdba9ce2dd6d2dd7e1885b3e433f66 (patch)
treee056a089fbff567cdc7e8f4fce2a4c34c8a76b40
parent1cf19f8f7c2a386b574676b938c31b6f3c707d76 (diff)
downloadranger-8c364ad44cfdba9ce2dd6d2dd7e1885b3e433f66.tar.gz
fsobject: use a "?" if no infostring is available
-rw-r--r--ranger/fsobject/__init__.py2
-rw-r--r--ranger/fsobject/fsobject.py4
2 files changed, 4 insertions, 2 deletions
diff --git a/ranger/fsobject/__init__.py b/ranger/fsobject/__init__.py
index 5f727c87..6796f252 100644
--- a/ranger/fsobject/__init__.py
+++ b/ranger/fsobject/__init__.py
@@ -21,7 +21,7 @@ T_DIRECTORY = 'directory'
 T_UNKNOWN = 'unknown'
 T_NONEXISTANT = 'nonexistant'
 
-BAD_INFO = None
+BAD_INFO = '?'
 
 class NotLoadedYet(Exception):
 	pass
diff --git a/ranger/fsobject/fsobject.py b/ranger/fsobject/fsobject.py
index 516f02e6..94729b9a 100644
--- a/ranger/fsobject/fsobject.py
+++ b/ranger/fsobject/fsobject.py
@@ -16,6 +16,8 @@
 CONTAINER_EXTENSIONS = 'rar zip tar gz bz bz2 tgz 7z iso cab'.split()
 DOCUMENT_EXTENSIONS = 'pdf doc ppt odt'.split()
 DOCUMENT_BASENAMES = 'README TODO LICENSE COPYING INSTALL'.split()
+DOCUMENT_EXTENSIONS = ()
+DOCUMENT_BASENAMES = ()
 
 import stat
 import os
@@ -210,7 +212,7 @@ class FileSystemObject(MimeTypeAware, FileManagerAware):
 				elif self.is_socket:
 					self.infostring = 'sock'
 				else:
-					self.infostring = None
+					self.infostring = BAD_INFO
 
 		else:
 			if self.is_link: