diff options
author | Jessica T <xray7224@googlemail.com> | 2013-04-12 01:40:15 +0100 |
---|---|---|
committer | Jessica T <xray7224@googlemail.com> | 2013-04-12 01:40:15 +0100 |
commit | 79e2d4eee4dce45333c7e1aeb8cece09afd9b552 (patch) | |
tree | 0f023f289e9548d1679138086f5394933eb314b3 /mediagoblin/tools | |
parent | f1c3807db73adcc5eb817d693d160386f87bb15b (diff) | |
download | mediagoblin-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.py | 7 |
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) |