[Checkins] SVN: DateTime/trunk/ Reverted the single argument `None` special case handling for unpickling and continue to treat it as meaning `now`.
Hanno Schlichting
hannosch at hannosch.eu
Wed Oct 19 04:41:45 EST 2011
Log message for revision 123104:
Reverted the single argument `None` special case handling for unpickling and continue to treat it as meaning `now`.
Changed:
U DateTime/trunk/CHANGES.txt
U DateTime/trunk/setup.py
U DateTime/trunk/src/DateTime/DateTime.py
-=-
Modified: DateTime/trunk/CHANGES.txt
===================================================================
--- DateTime/trunk/CHANGES.txt 2011-10-18 15:04:21 UTC (rev 123103)
+++ DateTime/trunk/CHANGES.txt 2011-10-19 09:41:44 UTC (rev 123104)
@@ -24,12 +24,12 @@
used in comparing timestamps of file systems - use the time and datetime objects
from the Python standard library instead.
-Calling the DateTime constructor with a single argument of `None` will no longer
-create a DateTime instance representing `now`. Call the constructor without any
-arguments instead. The `None` case is a special case used during unpickling and
-requires you to call `__setstate__` to get a fully initialized instance.
+3.0b2 (unreleased)
+------------------
+- Reverted the single argument `None` special case handling for unpickling and
+ continue to treat it as meaning `now`.
3.0b1 (2011-05-07)
------------------
Modified: DateTime/trunk/setup.py
===================================================================
--- DateTime/trunk/setup.py 2011-10-18 15:04:21 UTC (rev 123103)
+++ DateTime/trunk/setup.py 2011-10-19 09:41:44 UTC (rev 123104)
@@ -16,7 +16,7 @@
from setuptools import setup, find_packages
setup(name='DateTime',
- version = '3.0dev',
+ version = '3.0b2',
url='http://pypi.python.org/pypi/DateTime',
license='ZPL 2.1',
description="""\
Modified: DateTime/trunk/src/DateTime/DateTime.py
===================================================================
--- DateTime/trunk/src/DateTime/DateTime.py 2011-10-18 15:04:21 UTC (rev 123103)
+++ DateTime/trunk/src/DateTime/DateTime.py 2011-10-19 09:41:44 UTC (rev 123104)
@@ -435,9 +435,6 @@
def __init__(self, *args, **kw):
"""Return a new date-time object"""
- if args and args[0] is None:
- # unpickle
- return
try:
return self._parse_args(*args, **kw)
except (DateError, TimeError, DateTimeError):
More information about the checkins
mailing list