Fixed wrong if statemants.

svn: r11691
This commit is contained in:
Peter Landgren 2009-01-22 19:46:41 +00:00
parent 0f2222a380
commit b2186d274e

View File

@ -87,7 +87,7 @@ def swedish_valid(date_tuple):
valid = True valid = True
if date_tuple >= (1712,3,1): # back to julian if date_tuple >= (1712,3,1): # back to julian
valid = False valid = False
valid = True valid = True # for the moment, working on it ldnp
return valid return valid
def french_valid(date_tuple): def french_valid(date_tuple):
@ -434,13 +434,12 @@ class DateParser:
if subparser == self._parse_greg_julian: if subparser == self._parse_greg_julian:
check = gregorian_valid check = gregorian_valid
if subparser == self._parse_swedish: elif subparser == self._parse_swedish:
check = swedish_valid check = swedish_valid
if subparser == self._parse_french: elif subparser == self._parse_french:
check = french_valid check = french_valid
else: else:
check = None check = None
value = subparser(text) value = subparser(text)
if value != Date.EMPTY: if value != Date.EMPTY:
return value return value