From 9bb68012d5ff8fdf04466bfd3795d7db9092d473 Mon Sep 17 00:00:00 2001 From: Peter Landgren Date: Sat, 21 Feb 2009 07:15:51 +0000 Subject: [PATCH] Removed code, that was committed by mistake. svn: r12061 --- src/DateHandler/_DateParser.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/DateHandler/_DateParser.py b/src/DateHandler/_DateParser.py index da74a286f..3bb6b1b6a 100644 --- a/src/DateHandler/_DateParser.py +++ b/src/DateHandler/_DateParser.py @@ -474,12 +474,6 @@ class DateParser: value = subparser(text) if value != Date.EMPTY: return value - # if 8 digits are entered and month and day in range - # assume yyyymmdd and convert to yyyy-mm-dd - if len(text) == 8 and text.isdigit() \ - and (int(text[4:6]) in range(1,13)) \ - and (int(text[6:8]) in range(1,32)): - text = text[0:4] + "-" + text[4:6] + "-" + text[6:8] match = self._iso.match(text) if match: groups = match.groups()