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

This commit is contained in:
Vassilii Khachaturov 2013-11-15 22:23:54 +02:00
parent 4f29c6e464
commit 3c93c1d164

View File

@ -1558,7 +1558,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: