Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tautils.py
diff options
context:
space:
mode:
authorWalter Bender <walter@walter-laptop.(none)>2010-02-27 19:35:32 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2010-02-27 19:35:32 (GMT)
commit53a37a39b3bf4fd6948c1a458811d40953c36155 (patch)
tree893e5509110c4b8a0272f8ffc05041298de69c1d /tautils.py
parent276d1fbe1b3fff3e400eb2ecd8f52e6ceb0e3619 (diff)
description block reads txt files
Diffstat (limited to 'tautils.py')
-rw-r--r--tautils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tautils.py b/tautils.py
index 0d95a5b..a889095 100644
--- a/tautils.py
+++ b/tautils.py
@@ -169,6 +169,8 @@ def audio_media_type(name):
def image_media_type(name):
return name.endswith(('.png', '.jpg', '.jpeg', '.gif', '.tiff', '.tif',
'.svg'))
+def text_media_type(name):
+ return name.endswith(('.txt', '.py', '.lg', '.doc', '.rtf'))
def round_int(n):
if int(float(n)) == n: