Mercurial > public > mercurial-scm > hg
comparison mercurial/templatefilters.py @ 10787:5974123d0339
templatefilters: fix check-code warning
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 29 Mar 2010 16:11:40 -0500 |
parents | b98b6a7363ae |
children | d320e70442a5 |
comparison
equal
deleted
inserted
replaced
10786:2f2ae64a2948 | 10787:5974123d0339 |
---|---|
18 ("month", 3600 * 24 * 30), | 18 ("month", 3600 * 24 * 30), |
19 ("week", 3600 * 24 * 7), | 19 ("week", 3600 * 24 * 7), |
20 ("day", 3600 * 24), | 20 ("day", 3600 * 24), |
21 ("hour", 3600), | 21 ("hour", 3600), |
22 ("minute", 60), | 22 ("minute", 60), |
23 ("second", 1),] | 23 ("second", 1)] |
24 | 24 |
25 def age(date): | 25 def age(date): |
26 '''turn a (timestamp, tzoff) tuple into an age string.''' | 26 '''turn a (timestamp, tzoff) tuple into an age string.''' |
27 | 27 |
28 def plural(t, c): | 28 def plural(t, c): |