util: add default argument to strdate
authorBryan O'Sullivan <bos@serpentine.com>
Tue, 02 Oct 2007 13:46:59 -0700
changeset 5357 c6adf2be6069
parent 5356 f0931c0240b4
child 5358 4fbd27bf04b1
util: add default argument to strdate
mercurial/util.py
--- a/mercurial/util.py	Tue Oct 02 13:46:17 2007 -0700
+++ b/mercurial/util.py	Tue Oct 02 13:46:59 2007 -0700
@@ -1468,7 +1468,7 @@
         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):