aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tools
diff options
context:
space:
mode:
authorJessica T <xray7224@googlemail.com>2013-04-12 01:40:15 +0100
committerJessica T <xray7224@googlemail.com>2013-04-12 01:40:15 +0100
commit79e2d4eee4dce45333c7e1aeb8cece09afd9b552 (patch)
tree0f023f289e9548d1679138086f5394933eb314b3 /mediagoblin/tools
parentf1c3807db73adcc5eb817d693d160386f87bb15b (diff)
downloadmediagoblin-79e2d4eee4dce45333c7e1aeb8cece09afd9b552.tar.lz
mediagoblin-79e2d4eee4dce45333c7e1aeb8cece09afd9b552.tar.xz
mediagoblin-79e2d4eee4dce45333c7e1aeb8cece09afd9b552.zip
Adds the unit tests and removes useless function we don't use
Diffstat (limited to 'mediagoblin/tools')
-rw-r--r--mediagoblin/tools/timesince.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/mediagoblin/tools/timesince.py b/mediagoblin/tools/timesince.py
index feea3303..b761c1be 100644
--- a/mediagoblin/tools/timesince.py
+++ b/mediagoblin/tools/timesince.py
@@ -93,10 +93,3 @@ def timesince(d, now=None, reversed=False):
if count2 != 0:
s += pass_to_ugettext(', %(number)d %(type)s') % {'number': count2, 'type': name2(count2)}
return s
-
-def timeuntil(d, now=None):
- """
- Like timesince, but returns a string measuring the time until
- the given time.
- """
- return timesince(d, now, reversed=True)