[FIX] document: do not try to index binary documents

bzr revid: chs@taupe-20090903125000-p2yhb7gh7emlr6ip
This commit is contained in:
Christophe Simonis 2009-09-03 14:50:00 +02:00
parent 8830155b50
commit f7c7f0bb7f
1 changed files with 2 additions and 2 deletions

View File

@ -63,8 +63,8 @@ def content_index(content, filename=None, content_type=None):
s.close()
elif ext in ('.txt','.py','.patch','.html','.csv','.xml'):
result = content
else:
result = content
#else:
# result = content
return result
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: