From e8a80a51e523f274ea3e7eaa7efe30135bde9590 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Tue, 30 Mar 2010 05:12:14 +0000 Subject: [PATCH] Only 2 dashes. --- colander/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/colander/__init__.py b/colander/__init__.py index fde8ab9..e128e86 100644 --- a/colander/__init__.py +++ b/colander/__init__.py @@ -670,7 +670,7 @@ class Date(object): result = result.date() except (iso8601.ParseError, TypeError): try: - year, month, day = map(int, value.split('-', 3)) + year, month, day = map(int, value.split('-', 2)) result = datetime.date(year, month, day) except Exception, e: raise Invalid(node,