Commit d980b46d authored by Andreas Jung's avatar Andreas Jung

parent 93e0d14d
...@@ -16,6 +16,8 @@ Zope Changes ...@@ -16,6 +16,8 @@ Zope Changes
Bugs fixed Bugs fixed
- Collector #951: DateTime(None) now raises a proper SyntaxError
- Collector #1056: aq_acquire() ignored the default argument - Collector #1056: aq_acquire() ignored the default argument
- Collector #1087: ZPT: "repeat/item/length" did not work as documented - Collector #1087: ZPT: "repeat/item/length" did not work as documented
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
############################################################################## ##############################################################################
"""Encapsulation of date/time values""" """Encapsulation of date/time values"""
__version__='$Revision: 1.86 $'[11:-2] __version__='$Revision: 1.87 $'[11:-2]
import os, re, math, DateTimeZone import os, re, math, DateTimeZone
...@@ -632,10 +632,11 @@ class DateTime: ...@@ -632,10 +632,11 @@ class DateTime:
ac=len(args) ac=len(args)
millisecs = None millisecs = None
if ac and args[0]==None: return if ac and args[0]==None:
raise self.SyntaxError, None
elif ac==10: elif ac==10:
# Internal format called only by DateTime # Internal format called only by DateTime
yr,mo,dy,hr,mn,sc,tz,t,d,s=args yr,mo,dy,hr,mn,sc,tz,t,d,s=args
elif ac == 11: elif ac == 11:
# Internal format that includes milliseconds. # Internal format that includes milliseconds.
yr,mo,dy,hr,mn,sc,tz,t,d,s,millisecs=args yr,mo,dy,hr,mn,sc,tz,t,d,s,millisecs=args
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment