7198,7212: fix Date.set(value=None)

This commit is contained in:
Vassilii Khachaturov 2013-11-15 22:23:54 +02:00
parent 13438a74d6
commit 89a822507a

View File

@ -1588,7 +1588,7 @@ class Date(object):
if calendar is None:
calendar = self.calendar
if value is None:
value = self.value
value = self.dateval
if modifier in (Date.MOD_NONE, Date.MOD_BEFORE,
Date.MOD_AFTER, Date.MOD_ABOUT) and len(value) < 4: