mercurial/util.py
changeset 31413 7409eb69731f
parent 31402 8b6927eb7efd
child 31439 807387581d89
--- a/mercurial/util.py	Wed Mar 15 14:51:18 2017 +0530
+++ b/mercurial/util.py	Tue Mar 14 08:51:35 2017 -0700
@@ -1830,7 +1830,7 @@
 def strdate(string, format, defaults=None):
     """parse a localized time string and return a (unixtime, offset) tuple.
     if the string cannot be parsed, ValueError is raised."""
-    defaults = defaults or []
+    defaults = defaults or {}
 
     # NOTE: unixtime = localunixtime + offset
     offset, date = parsetimezone(string)