# HG changeset patch # User Bryan O'Sullivan # Date 2007-10-02 20:46:59 # Node ID c6adf2be6069c206a4104dc28adfedcf296b8a46 # Parent f0931c0240b49ea3d7866e3bd09e587b82200024 util: add default argument to strdate diff --git a/mercurial/util.py b/mercurial/util.py --- 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):