Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tautils.py
diff options
context:
space:
mode:
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: