From 53a37a39b3bf4fd6948c1a458811d40953c36155 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Sat, 27 Feb 2010 19:35:32 +0000 Subject: description block reads txt files --- (limited to 'tautils.py') 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: -- cgit v0.9.1