[Zope-Checkins] CVS: Zope/lib/python/DateTime - DateTime.py:1.85.12.2

Andreas Jung andreas at andreas-jung.com
Tue Oct 21 09:11:00 EDT 2003


Update of /cvs-repository/Zope/lib/python/DateTime
In directory cvs.zope.org:/tmp/cvs-serv24911/lib/python/DateTime

Modified Files:
      Tag: Zope-2_7-branch
	DateTime.py 
Log Message:

     - Collector #951: DateTime(None) now raises a proper SyntaxError


=== Zope/lib/python/DateTime/DateTime.py 1.85.12.1 => 1.85.12.2 ===
--- Zope/lib/python/DateTime/DateTime.py:1.85.12.1	Mon Jul 21 12:35:21 2003
+++ Zope/lib/python/DateTime/DateTime.py	Tue Oct 21 09:10:59 2003
@@ -632,10 +632,11 @@
         ac=len(args)
         millisecs = None
 
-        if ac and args[0]==None: return
+        if ac and args[0]==None: 
+            raise self.SyntaxError, None
         elif ac==10:
             # 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:
             # Internal format that includes milliseconds.
             yr,mo,dy,hr,mn,sc,tz,t,d,s,millisecs=args




More information about the Zope-Checkins mailing list