[Python-checkins] python/dist/src/Modules _hotshot.c,1.20,1.21

fdrake@users.sourceforge.net fdrake@users.sourceforge.net
Wed, 17 Jul 2002 11:54:23 -0700


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

Modified Files:
	_hotshot.c 
Log Message:
Added a docstring for the closed attribute.


Index: _hotshot.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_hotshot.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** _hotshot.c	17 Jul 2002 16:15:35 -0000	1.20
--- _hotshot.c	17 Jul 2002 18:54:20 -0000	1.21
***************
*** 1181,1185 ****
  
  static PyGetSetDef profiler_getsets[] = {
!     {"closed", (getter)profiler_get_closed, NULL},
      {NULL}
  };
--- 1181,1186 ----
  
  static PyGetSetDef profiler_getsets[] = {
!     {"closed", (getter)profiler_get_closed, NULL,
!      "True if the profiler's output file has already been closed."},
      {NULL}
  };
***************
*** 1438,1444 ****
          PyObject *item = PyList_GET_ITEM(temp, i);
          buffer = PyString_AsString(item);
!         if (buffer == NULL)
!             return -1;
!         pack_add_info(self, "sys-path-entry", buffer);
      }
      pack_frame_times(self);
--- 1439,1449 ----
          PyObject *item = PyList_GET_ITEM(temp, i);
          buffer = PyString_AsString(item);
!         if (buffer == NULL) {
!             pack_add_info(self, "sys-path-entry", "<non-string-path-entry>");
!             PyErr_Clear();
!         }
!         else {
!             pack_add_info(self, "sys-path-entry", buffer);
!         }
      }
      pack_frame_times(self);