Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
14ee2989
Commit
14ee2989
authored
Mar 04, 2009
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Omitted upgrade for state dicts w/o '_micros'.
parent
c6336db5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
lib/python/DateTime/DateTime.py
lib/python/DateTime/DateTime.py
+2
-0
No files found.
lib/python/DateTime/DateTime.py
View file @
14ee2989
...
@@ -356,6 +356,8 @@ class DateTime:
...
@@ -356,6 +356,8 @@ class DateTime:
def
__setstate__
(
self
,
state
):
def
__setstate__
(
self
,
state
):
self
.
__dict__
.
clear
()
# why doesn't Python's unpickler do this?
self
.
__dict__
.
clear
()
# why doesn't Python's unpickler do this?
self
.
__dict__
.
update
(
state
)
self
.
__dict__
.
update
(
state
)
if
'_micros'
not
in
state
:
self
.
_micros
=
self
.
_upgrade_old
()
def
_parse_args
(
self
,
*
args
,
**
kw
):
def
_parse_args
(
self
,
*
args
,
**
kw
):
"""Return a new date-time object.
"""Return a new date-time object.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment