[Python-checkins] python/nondist/sandbox/datetime datetime.c,1.34,1.35

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Mon, 02 Dec 2002 16:20:50 -0800


Update of /cvsroot/python/python/nondist/sandbox/datetime
In directory sc8-pr-cvs1:/tmp/cvs-serv27761

Modified Files:
	datetime.c 
Log Message:
Used MINYEAR macro in place of a hardcoded 1.


Index: datetime.c
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/datetime/datetime.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -d -r1.34 -r1.35
*** datetime.c	2 Dec 2002 21:50:55 -0000	1.34
--- datetime.c	3 Dec 2002 00:20:47 -0000	1.35
***************
*** 634,638 ****
  	m = Py_InitModule3("_datetime", NULL,
  			   "Fast implementation of the datetime type.");
! 	PyModule_AddIntConstant(m, "MINYEAR", 1);
  	PyModule_AddIntConstant(m, "MAXYEAR", MAXYEAR);
  	Py_INCREF(&PyDateTime_DateType);
--- 634,638 ----
  	m = Py_InitModule3("_datetime", NULL,
  			   "Fast implementation of the datetime type.");
! 	PyModule_AddIntConstant(m, "MINYEAR", MINYEAR);
  	PyModule_AddIntConstant(m, "MAXYEAR", MAXYEAR);
  	Py_INCREF(&PyDateTime_DateType);