Mercurial > hg > mercurial-crew-with-dirclash
changeset 5353:c6adf2be6069
util: add default argument to strdate
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Tue, 02 Oct 2007 13:46:59 -0700 |
parents | f0931c0240b4 |
children | 4fbd27bf04b1 |
files | mercurial/util.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/util.py +++ b/mercurial/util.py @@ -1468,7 +1468,7 @@ def datestr(date=None, format='%a %b %d s += timezone_format % (-tz / 3600, ((-tz % 3600) / 60)) return s -def strdate(string, format, defaults): +def strdate(string, format, defaults=[]): """parse a localized time string and return a (unixtime, offset) tuple. if the string cannot be parsed, ValueError is raised.""" def timezone(string):