From 1a4760a3482deb4d2f7bb5a7628068d91e40bf6f Mon Sep 17 00:00:00 2001 From: Sam Ruby Date: Wed, 11 Oct 2006 06:06:05 -0400 Subject: [PATCH] Support Google-formatted dates --- planet/feedparser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/planet/feedparser.py b/planet/feedparser.py index e35e247..c5894f4 100755 --- a/planet/feedparser.py +++ b/planet/feedparser.py @@ -11,7 +11,7 @@ Recommended: Python 2.3 or later Recommended: CJKCodecs and iconv_codec """ -__version__ = "4.2-pre-" + "$Revision: 1.141 $"[11:16] + "-cvs" +__version__ = "4.2-pre-" + "$Revision: 1.142 $"[11:16] + "-cvs" __license__ = """Copyright (c) 2002-2006, Mark Pilgrim, All rights reserved. Redistribution and use in source and binary forms, with or without modification, @@ -2640,7 +2640,7 @@ def registerDateHandler(func): # 0301-04-01), so we use templates instead. # Please note the order in templates is significant because we need a # greedy match. -_iso8601_tmpl = ['YYYY-?MM-?DD', 'YYYY-MM', 'YYYY-?OOO', +_iso8601_tmpl = ['YYYY-?MM-?DD', 'YYYY-0MM?-?DD', 'YYYY-MM', 'YYYY-?OOO', 'YY-?MM-?DD', 'YY-?OOO', 'YYYY', '-YY-?MM', '-OOO', '-YY', '--MM-?DD', '--MM',