[Python-checkins] python/dist/src/Modules datetimemodule.c,1.42,1.43

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Thu, 23 Jan 2003 09:20:42 -0800


Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv20565/python/Modules

Modified Files:
	datetimemodule.c 
Log Message:
fromutc():  Repair incorrect failure return, as noted by NealN.  Thanks!


Index: datetimemodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/datetimemodule.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -C2 -d -r1.42 -r1.43
*** datetimemodule.c	23 Jan 2003 16:36:11 -0000	1.42
--- datetimemodule.c	23 Jan 2003 17:20:36 -0000	1.43
***************
*** 2795,2799 ****
  	if ((mm < 0 || mm >= 60) &&
  	    normalize_datetime(&y, &m, &d, &hh, &mm, &ss, &us) < 0)
! 		goto Fail;
  	result = new_datetime(y, m, d, hh, mm, ss, us, dt->tzinfo);
  	if (result == NULL)
--- 2795,2799 ----
  	if ((mm < 0 || mm >= 60) &&
  	    normalize_datetime(&y, &m, &d, &hh, &mm, &ss, &us) < 0)
! 		return NULL;
  	result = new_datetime(y, m, d, hh, mm, ss, us, dt->tzinfo);
  	if (result == NULL)