===================================================================
RCS file: /u/lance/CVS/python/Extensions/metalbase/metalbasemodule.c,v
retrieving revision 1.4
diff -b -c -r1.4 metalbasemodule.c
*** 1.4 1994/09/08 20:04:53
--- metalbasemodule.c 1994/09/16 17:25:00
***************
*** 201,209 ****
*(mb_time *)addr = scn_time(PyString_AsString(v));
} else if (PyTuple_Check(v)) {
SetHours( (*(mb_time *)addr), PyInt_AsLong(PyTuple_GetItem(v,0)));
! SetMinutes( (*(mb_time *)addr), PyInt_AsLong(PyTuple_GetItem(v,0)));
! SetSeconds( (*(mb_time *)addr), PyInt_AsLong(PyTuple_GetItem(v,0)));
! SetMicros( (*(mb_time *)addr), PyInt_AsLong(PyTuple_GetItem(v,0)));
} else {
PyErr_BadArgument();
return -1;
--- 201,209 ----
*(mb_time *)addr = scn_time(PyString_AsString(v));
} else if (PyTuple_Check(v)) {
SetHours( (*(mb_time *)addr), PyInt_AsLong(PyTuple_GetItem(v,0)));
! SetMinutes( (*(mb_time *)addr), PyInt_AsLong(PyTuple_GetItem(v,1)));
! SetSeconds( (*(mb_time *)addr), PyInt_AsLong(PyTuple_GetItem(v,2)));
! SetMicros( (*(mb_time *)addr), PyInt_AsLong(PyTuple_GetItem(v,3)));
} else {
PyErr_BadArgument();
return -1;
-- Lance Ellinghouse lance@fox.com