[Python-checkins] CVS: python/dist/src/Modules _curses_panel.c,1.10,1.11 _localemodule.c,2.26,2.27 bsddbmodule.c,1.32,1.33 md5module.c,2.27,2.28 pwdmodule.c,1.28,1.29 readline.c,2.45,2.46 signalmodule.c,2.63,2.64 threadmodule.c,2.44,2.45

Neal Norwitz nnorwitz@users.sourceforge.net
Mon, 25 Mar 2002 12:46:48 -0800


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

Modified Files:
	_curses_panel.c _localemodule.c bsddbmodule.c md5module.c 
	pwdmodule.c readline.c signalmodule.c threadmodule.c 
Log Message:
Remove many uses of PyArg_NoArgs macro, change METH_OLDARGS to METH_NOARGS.


Index: _curses_panel.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_curses_panel.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** _curses_panel.c	30 Jan 2002 15:47:34 -0000	1.10
--- _curses_panel.c	25 Mar 2002 20:46:45 -0000	1.11
***************
*** 356,360 ****
     may be undesirable. */
  static PyObject *
! PyCurses_bottom_panel(PyObject *self, PyObject *args)
  {
      PANEL *pan;
--- 356,360 ----
     may be undesirable. */
  static PyObject *
! PyCurses_bottom_panel(PyObject *self)
  {
      PANEL *pan;
***************
*** 362,367 ****
  
      PyCursesInitialised;
- 	
-     if (!PyArg_NoArgs(args)) return NULL;
  
      pan = panel_above(NULL);
--- 362,365 ----
***************
*** 404,408 ****
     undesirable. */
  static PyObject *
! PyCurses_top_panel(PyObject *self, PyObject *args)
  {
      PANEL *pan;
--- 402,406 ----
     undesirable. */
  static PyObject *
! PyCurses_top_panel(PyObject *self)
  {
      PANEL *pan;
***************
*** 410,415 ****
      
      PyCursesInitialised;
- 	
-     if (!PyArg_NoArgs(args)) return NULL;
  
      pan = panel_below(NULL);
--- 408,411 ----
***************
*** 430,437 ****
  }
  
! static PyObject *PyCurses_update_panels(PyObject *self, PyObject *args)
  { 
      PyCursesInitialised;
-     if (!PyArg_NoArgs(args)) return NULL;
      update_panels();
      Py_INCREF(Py_None);
--- 426,432 ----
  }
  
! static PyObject *PyCurses_update_panels(PyObject *self)
  { 
      PyCursesInitialised;
      update_panels();
      Py_INCREF(Py_None);
***************
*** 443,450 ****
  
  static PyMethodDef PyCurses_methods[] = {
!     {"bottom_panel",        (PyCFunction)PyCurses_bottom_panel},
!     {"new_panel",           (PyCFunction)PyCurses_new_panel, METH_VARARGS},
!     {"top_panel",           (PyCFunction)PyCurses_top_panel},
!     {"update_panels",       (PyCFunction)PyCurses_update_panels},
      {NULL,		NULL}		/* sentinel */
  };
--- 438,445 ----
  
  static PyMethodDef PyCurses_methods[] = {
!     {"bottom_panel",        (PyCFunction)PyCurses_bottom_panel,  METH_NOARGS},
!     {"new_panel",           (PyCFunction)PyCurses_new_panel,     METH_VARARGS},
!     {"top_panel",           (PyCFunction)PyCurses_top_panel,     METH_NOARGS},
!     {"update_panels",       (PyCFunction)PyCurses_update_panels, METH_NOARGS},
      {NULL,		NULL}		/* sentinel */
  };

Index: _localemodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_localemodule.c,v
retrieving revision 2.26
retrieving revision 2.27
diff -C2 -d -r2.26 -r2.27
*** _localemodule.c	12 Mar 2002 22:05:02 -0000	2.26
--- _localemodule.c	25 Mar 2002 20:46:45 -0000	2.27
***************
*** 246,250 ****
  
  static PyObject*
! PyLocale_localeconv(PyObject* self, PyObject* args)
  {
      PyObject* result;
--- 246,250 ----
  
  static PyObject*
! PyLocale_localeconv(PyObject* self)
  {
      PyObject* result;
***************
*** 252,258 ****
      PyObject *x;
  
-     if (!PyArg_NoArgs(args))
-         return NULL;
- 
      result = PyDict_New();
      if (!result)
--- 252,255 ----
***************
*** 369,380 ****
  #if defined(MS_WIN32)
  static PyObject*
! PyLocale_getdefaultlocale(PyObject* self, PyObject* args)
  {
      char encoding[100];
      char locale[100];
  
-     if (!PyArg_NoArgs(args))
-         return NULL;
- 
      PyOS_snprintf(encoding, sizeof(encoding), "cp%d", GetACP());
  
--- 366,374 ----
  #if defined(MS_WIN32)
  static PyObject*
! PyLocale_getdefaultlocale(PyObject* self)
  {
      char encoding[100];
      char locale[100];
  
      PyOS_snprintf(encoding, sizeof(encoding), "cp%d", GetACP());
  
***************
*** 409,413 ****
  #if defined(macintosh)
  static PyObject*
! PyLocale_getdefaultlocale(PyObject* self, PyObject* args)
  {
      return Py_BuildValue("Os", Py_None, PyMac_getscript());
--- 403,407 ----
  #if defined(macintosh)
  static PyObject*
! PyLocale_getdefaultlocale(PyObject* self)
  {
      return Py_BuildValue("Os", Py_None, PyMac_getscript());
***************
*** 531,535 ****
     METH_VARARGS, setlocale__doc__},
    {"localeconv", (PyCFunction) PyLocale_localeconv, 
!    0, localeconv__doc__},
    {"strcoll", (PyCFunction) PyLocale_strcoll, 
     METH_VARARGS, strcoll__doc__},
--- 525,529 ----
     METH_VARARGS, setlocale__doc__},
    {"localeconv", (PyCFunction) PyLocale_localeconv, 
!    METH_NOARGS, localeconv__doc__},
    {"strcoll", (PyCFunction) PyLocale_strcoll, 
     METH_VARARGS, strcoll__doc__},
***************
*** 537,541 ****
     METH_VARARGS, strxfrm__doc__},
  #if defined(MS_WIN32) || defined(macintosh)
!   {"_getdefaultlocale", (PyCFunction) PyLocale_getdefaultlocale, 0},
  #endif
  #ifdef HAVE_LANGINFO_H
--- 531,535 ----
     METH_VARARGS, strxfrm__doc__},
  #if defined(MS_WIN32) || defined(macintosh)
!   {"_getdefaultlocale", (PyCFunction) PyLocale_getdefaultlocale, METH_NOARGS},
  #endif
  #ifdef HAVE_LANGINFO_H

Index: bsddbmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/bsddbmodule.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -d -r1.32 -r1.33
*** bsddbmodule.c	17 Jan 2002 23:15:58 -0000	1.32
--- bsddbmodule.c	25 Mar 2002 20:46:45 -0000	1.33
***************
*** 381,388 ****
  
  static PyObject *
! bsddb_close(bsddbobject *dp, PyObject *args)
  {
- 	if (!PyArg_NoArgs(args))
- 		return NULL;
  	if (dp->di_bsddb != NULL) {
  		int status;
--- 381,386 ----
  
  static PyObject *
! bsddb_close(bsddbobject *dp)
  {
  	if (dp->di_bsddb != NULL) {
  		int status;
***************
*** 402,406 ****
  
  static PyObject *
! bsddb_keys(bsddbobject *dp, PyObject *args)
  {
  	PyObject *list, *item=NULL;
--- 400,404 ----
  
  static PyObject *
! bsddb_keys(bsddbobject *dp)
  {
  	PyObject *list, *item=NULL;
***************
*** 410,415 ****
  	int err;
  
- 	if (!PyArg_NoArgs(args))
- 		return NULL;
  	check_bsddbobject_open(dp, NULL);
  	list = PyList_New(0);
--- 408,411 ----
***************
*** 563,567 ****
  
  static PyObject *
! bsddb_seq(bsddbobject *dp, PyObject *args, int sequence_request)
  {
  	int status;
--- 559,563 ----
  
  static PyObject *
! bsddb_seq(bsddbobject *dp, int sequence_request)
  {
  	int status;
***************
*** 571,577 ****
  	PyObject *result;
  
- 	if (!PyArg_NoArgs(args))
- 		return NULL;
- 
  	check_bsddbobject_open(dp, NULL);
  	krec.data = 0;
--- 567,570 ----
***************
*** 599,607 ****
  			PyErr_SetFromErrno(BsddbError);
  		else
! 			PyErr_SetObject(PyExc_KeyError, args);
  		return NULL;
  	}
  
- 	
  	if (dp->di_type == DB_RECNO)
  		result = Py_BuildValue("is#", *((int*)kdata),
--- 592,599 ----
  			PyErr_SetFromErrno(BsddbError);
  		else
! 			PyErr_SetString(PyExc_KeyError, "no key/data pairs");
  		return NULL;
  	}
  
  	if (dp->di_type == DB_RECNO)
  		result = Py_BuildValue("is#", *((int*)kdata),
***************
*** 616,645 ****
  
  static PyObject *
! bsddb_next(bsddbobject *dp, PyObject *key)
  {
! 	return bsddb_seq(dp, key, R_NEXT);
  }
  static PyObject *
! bsddb_previous(bsddbobject *dp, PyObject *key)
  {
! 	return bsddb_seq(dp, key, R_PREV);
  }
  static PyObject *
! bsddb_first(bsddbobject *dp, PyObject *key)
  {
! 	return bsddb_seq(dp, key, R_FIRST);
  }
  static PyObject *
! bsddb_last(bsddbobject *dp, PyObject *key)
  {
! 	return bsddb_seq(dp, key, R_LAST);
  }
  static PyObject *
! bsddb_sync(bsddbobject *dp, PyObject *args)
  {
  	int status;
  
- 	if (!PyArg_NoArgs(args))
- 		return NULL;
  	check_bsddbobject_open(dp, NULL);
  	BSDDB_BGN_SAVE(dp)
--- 608,635 ----
  
  static PyObject *
! bsddb_next(bsddbobject *dp)
  {
! 	return bsddb_seq(dp, R_NEXT);
  }
  static PyObject *
! bsddb_previous(bsddbobject *dp)
  {
! 	return bsddb_seq(dp, R_PREV);
  }
  static PyObject *
! bsddb_first(bsddbobject *dp)
  {
! 	return bsddb_seq(dp, R_FIRST);
  }
  static PyObject *
! bsddb_last(bsddbobject *dp)
  {
! 	return bsddb_seq(dp, R_LAST);
  }
  static PyObject *
! bsddb_sync(bsddbobject *dp)
  {
  	int status;
  
  	check_bsddbobject_open(dp, NULL);
  	BSDDB_BGN_SAVE(dp)
***************
*** 653,665 ****
  }
  static PyMethodDef bsddb_methods[] = {
! 	{"close",		(PyCFunction)bsddb_close, METH_OLDARGS},
! 	{"keys",		(PyCFunction)bsddb_keys, METH_OLDARGS},
  	{"has_key",		(PyCFunction)bsddb_has_key, METH_OLDARGS},
  	{"set_location",	(PyCFunction)bsddb_set_location, METH_OLDARGS},
! 	{"next",		(PyCFunction)bsddb_next, METH_OLDARGS},
! 	{"previous",	(PyCFunction)bsddb_previous, METH_OLDARGS},
! 	{"first",		(PyCFunction)bsddb_first, METH_OLDARGS},
! 	{"last",		(PyCFunction)bsddb_last, METH_OLDARGS},
! 	{"sync",		(PyCFunction)bsddb_sync, METH_OLDARGS},
  	{NULL,	       	NULL}		/* sentinel */
  };
--- 643,655 ----
  }
  static PyMethodDef bsddb_methods[] = {
! 	{"close",		(PyCFunction)bsddb_close, METH_NOARGS},
! 	{"keys",		(PyCFunction)bsddb_keys, METH_NOARGS},
  	{"has_key",		(PyCFunction)bsddb_has_key, METH_OLDARGS},
  	{"set_location",	(PyCFunction)bsddb_set_location, METH_OLDARGS},
! 	{"next",		(PyCFunction)bsddb_next, METH_NOARGS},
! 	{"previous",	(PyCFunction)bsddb_previous, METH_NOARGS},
! 	{"first",		(PyCFunction)bsddb_first, METH_NOARGS},
! 	{"last",		(PyCFunction)bsddb_last, METH_NOARGS},
! 	{"sync",		(PyCFunction)bsddb_sync, METH_NOARGS},
  	{NULL,	       	NULL}		/* sentinel */
  };

Index: md5module.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/md5module.c,v
retrieving revision 2.27
retrieving revision 2.28
diff -C2 -d -r2.27 -r2.28
*** md5module.c	8 Dec 2001 18:02:57 -0000	2.27
--- md5module.c	25 Mar 2002 20:46:46 -0000	2.28
***************
*** 71,82 ****
  
  static PyObject *
! md5_digest(md5object *self, PyObject *args)
  {
   	MD5_CTX mdContext;
  	unsigned char aDigest[16];
  
- 	if (!PyArg_NoArgs(args))
- 		return NULL;
- 
  	/* make a temporary copy, and perform the final */
  	mdContext = self->md5;
--- 71,79 ----
  
  static PyObject *
! md5_digest(md5object *self)
  {
   	MD5_CTX mdContext;
  	unsigned char aDigest[16];
  
  	/* make a temporary copy, and perform the final */
  	mdContext = self->md5;
***************
*** 95,99 ****
  
  static PyObject *
! md5_hexdigest(md5object *self, PyObject *args)
  {
   	MD5_CTX mdContext;
--- 92,96 ----
  
  static PyObject *
! md5_hexdigest(md5object *self)
  {
   	MD5_CTX mdContext;
***************
*** 102,108 ****
  	int i, j;
  
- 	if (!PyArg_NoArgs(args))
- 		return NULL;
- 
  	/* make a temporary copy, and perform the final */
  	mdContext = self->md5;
--- 99,102 ----
***************
*** 130,140 ****
  
  static PyObject *
! md5_copy(md5object *self, PyObject *args)
  {
  	md5object *md5p;
  
- 	if (!PyArg_NoArgs(args))
- 		return NULL;
- 
  	if ((md5p = newmd5object()) == NULL)
  		return NULL;
--- 124,131 ----
  
  static PyObject *
! md5_copy(md5object *self)
  {
  	md5object *md5p;
  
  	if ((md5p = newmd5object()) == NULL)
  		return NULL;
***************
*** 153,159 ****
  static PyMethodDef md5_methods[] = {
  	{"update",    (PyCFunction)md5_update,    METH_OLDARGS, update_doc},
! 	{"digest",    (PyCFunction)md5_digest,    METH_OLDARGS, digest_doc},
! 	{"hexdigest", (PyCFunction)md5_hexdigest, METH_OLDARGS, hexdigest_doc},
! 	{"copy",      (PyCFunction)md5_copy,      METH_OLDARGS, copy_doc},
  	{NULL, NULL}			     /* sentinel */
  };
--- 144,150 ----
  static PyMethodDef md5_methods[] = {
  	{"update",    (PyCFunction)md5_update,    METH_OLDARGS, update_doc},
! 	{"digest",    (PyCFunction)md5_digest,    METH_NOARGS,  digest_doc},
! 	{"hexdigest", (PyCFunction)md5_hexdigest, METH_NOARGS,  hexdigest_doc},
! 	{"copy",      (PyCFunction)md5_copy,      METH_NOARGS,  copy_doc},
  	{NULL, NULL}			     /* sentinel */
  };

Index: pwdmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/pwdmodule.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** pwdmodule.c	3 Mar 2002 02:59:16 -0000	1.28
--- pwdmodule.c	25 Mar 2002 20:46:46 -0000	1.29
***************
*** 121,130 ****
  
  static PyObject *
! pwd_getpwall(PyObject *self, PyObject *args)
  {
  	PyObject *d;
  	struct passwd *p;
- 	if (!PyArg_NoArgs(args))
- 		return NULL;
  	if ((d = PyList_New(0)) == NULL)
  		return NULL;
--- 121,128 ----
  
  static PyObject *
! pwd_getpwall(PyObject *self)
  {
  	PyObject *d;
  	struct passwd *p;
  	if ((d = PyList_New(0)) == NULL)
  		return NULL;
***************
*** 152,156 ****
  	{"getpwnam",	pwd_getpwnam, METH_OLDARGS, pwd_getpwnam__doc__},
  #ifdef HAVE_GETPWENT
! 	{"getpwall",	pwd_getpwall, METH_OLDARGS, pwd_getpwall__doc__},
  #endif
  	{NULL,		NULL}		/* sentinel */
--- 150,154 ----
  	{"getpwnam",	pwd_getpwnam, METH_OLDARGS, pwd_getpwnam__doc__},
  #ifdef HAVE_GETPWENT
! 	{"getpwall",	pwd_getpwall, METH_NOARGS,  pwd_getpwall__doc__},
  #endif
  	{NULL,		NULL}		/* sentinel */

Index: readline.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/readline.c,v
retrieving revision 2.45
retrieving revision 2.46
diff -C2 -d -r2.45 -r2.46
*** readline.c	24 Mar 2002 01:09:04 -0000	2.45
--- readline.c	25 Mar 2002 20:46:46 -0000	2.46
***************
*** 238,246 ****
  /* get the beginning index for the scope of the tab-completion */
  static PyObject *
! get_begidx(PyObject *self, PyObject *args)
  {
- 	if(!PyArg_NoArgs(args)) {
- 		return NULL;
- 	} 
  	Py_INCREF(begidx);
  	return begidx;
--- 238,243 ----
  /* get the beginning index for the scope of the tab-completion */
  static PyObject *
! get_begidx(PyObject *self)
  {
  	Py_INCREF(begidx);
  	return begidx;
***************
*** 253,261 ****
  /* get the ending index for the scope of the tab-completion */
  static PyObject *
! get_endidx(PyObject *self, PyObject *args)
  {
-  	if(!PyArg_NoArgs(args)) {
- 		return NULL;
- 	} 
  	Py_INCREF(endidx);
  	return endidx;
--- 250,255 ----
  /* get the ending index for the scope of the tab-completion */
  static PyObject *
! get_endidx(PyObject *self)
  {
  	Py_INCREF(endidx);
  	return endidx;
***************
*** 308,316 ****
  
  static PyObject *
! get_completer_delims(PyObject *self, PyObject *args)
  {
- 	if(!PyArg_NoArgs(args)) {
- 		return NULL;
- 	}
  	return PyString_FromString(rl_completer_word_break_characters);
  }
--- 302,307 ----
  
  static PyObject *
! get_completer_delims(PyObject *self)
  {
  	return PyString_FromString(rl_completer_word_break_characters);
  }
***************
*** 360,369 ****
  
  static PyObject *
! get_current_history_length(PyObject *self, PyObject *args)
  {
  	HISTORY_STATE *hist_st;
  
- 	if (!PyArg_NoArgs(args))
- 		return NULL;
  	hist_st = history_get_history_state();
  	return PyInt_FromLong(hist_st ? (long) hist_st->length : (long) 0);
--- 351,358 ----
  
  static PyObject *
! get_current_history_length(PyObject *self)
  {
  	HISTORY_STATE *hist_st;
  
  	hist_st = history_get_history_state();
  	return PyInt_FromLong(hist_st ? (long) hist_st->length : (long) 0);
***************
*** 378,385 ****
  
  static PyObject *
! get_line_buffer(PyObject *self, PyObject *args)
  {
- 	if (!PyArg_NoArgs(args))
- 		return NULL;
  	return PyString_FromString(rl_line_buffer);
  }
--- 367,372 ----
  
  static PyObject *
! get_line_buffer(PyObject *self)
  {
  	return PyString_FromString(rl_line_buffer);
  }
***************
*** 428,432 ****
  	{"parse_and_bind", parse_and_bind, METH_VARARGS, doc_parse_and_bind},
  	{"get_line_buffer", get_line_buffer, 
! 	 METH_OLDARGS, doc_get_line_buffer},
  	{"insert_text", insert_text, METH_VARARGS, doc_insert_text},
  	{"redisplay", (PyCFunction)redisplay, METH_NOARGS, doc_redisplay},
--- 415,419 ----
  	{"parse_and_bind", parse_and_bind, METH_VARARGS, doc_parse_and_bind},
  	{"get_line_buffer", get_line_buffer, 
! 	 METH_NOARGS, doc_get_line_buffer},
  	{"insert_text", insert_text, METH_VARARGS, doc_insert_text},
  	{"redisplay", (PyCFunction)redisplay, METH_NOARGS, doc_redisplay},
***************
*** 439,443 ****
  	 METH_VARARGS, doc_get_history_item},
  	{"get_current_history_length", get_current_history_length,
! 	 METH_OLDARGS, doc_get_current_history_length},
   	{"set_history_length", set_history_length, 
  	 METH_VARARGS, set_history_length_doc},
--- 426,430 ----
  	 METH_VARARGS, doc_get_history_item},
  	{"get_current_history_length", get_current_history_length,
! 	 METH_NOARGS, doc_get_current_history_length},
   	{"set_history_length", set_history_length, 
  	 METH_VARARGS, set_history_length_doc},
***************
*** 445,450 ****
  	 METH_VARARGS, get_history_length_doc},
  	{"set_completer", set_completer, METH_VARARGS, doc_set_completer},
! 	{"get_begidx", get_begidx, METH_OLDARGS, doc_get_begidx},
! 	{"get_endidx", get_endidx, METH_OLDARGS, doc_get_endidx},
  
  	{"set_completer_delims", set_completer_delims, 
--- 432,437 ----
  	 METH_VARARGS, get_history_length_doc},
  	{"set_completer", set_completer, METH_VARARGS, doc_set_completer},
! 	{"get_begidx", get_begidx, METH_NOARGS, doc_get_begidx},
! 	{"get_endidx", get_endidx, METH_NOARGS, doc_get_endidx},
  
  	{"set_completer_delims", set_completer_delims, 
***************
*** 452,456 ****
  	{"add_history", py_add_history, METH_VARARGS, doc_add_history},
  	{"get_completer_delims", get_completer_delims, 
! 	 METH_OLDARGS, doc_get_completer_delims},
  	
  	{"set_startup_hook", set_startup_hook, METH_VARARGS, doc_set_startup_hook},
--- 439,443 ----
  	{"add_history", py_add_history, METH_VARARGS, doc_add_history},
  	{"get_completer_delims", get_completer_delims, 
! 	 METH_NOARGS, doc_get_completer_delims},
  	
  	{"set_startup_hook", set_startup_hook, METH_VARARGS, doc_set_startup_hook},

Index: signalmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/signalmodule.c,v
retrieving revision 2.63
retrieving revision 2.64
diff -C2 -d -r2.63 -r2.64
*** signalmodule.c	3 Mar 2002 02:59:16 -0000	2.63
--- signalmodule.c	25 Mar 2002 20:46:46 -0000	2.64
***************
*** 164,172 ****
  #ifdef HAVE_PAUSE
  static PyObject *
! signal_pause(PyObject *self, PyObject *args)
  {
- 	if (!PyArg_NoArgs(args))
- 		return NULL;
- 
  	Py_BEGIN_ALLOW_THREADS
  	(void)pause();
--- 164,169 ----
  #ifdef HAVE_PAUSE
  static PyObject *
! signal_pause(PyObject *self)
  {
  	Py_BEGIN_ALLOW_THREADS
  	(void)pause();
***************
*** 283,287 ****
  	{"getsignal",	        signal_getsignal, METH_OLDARGS, getsignal_doc},
  #ifdef HAVE_PAUSE
! 	{"pause",	        signal_pause, METH_OLDARGS, pause_doc},
  #endif
  	{"default_int_handler", signal_default_int_handler, 
--- 280,284 ----
  	{"getsignal",	        signal_getsignal, METH_OLDARGS, getsignal_doc},
  #ifdef HAVE_PAUSE
! 	{"pause",	        signal_pause, METH_NOARGS, pause_doc},
  #endif
  	{"default_int_handler", signal_default_int_handler, 

Index: threadmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/threadmodule.c,v
retrieving revision 2.44
retrieving revision 2.45
diff -C2 -d -r2.44 -r2.45
*** threadmodule.c	8 Dec 2001 18:02:58 -0000	2.44
--- threadmodule.c	25 Mar 2002 20:46:46 -0000	2.45
***************
*** 88,96 ****
  
  static PyObject *
! lock_PyThread_release_lock(lockobject *self, PyObject *args)
  {
- 	if (!PyArg_NoArgs(args))
- 		return NULL;
- 
  	/* Sanity check: the lock must be locked */
  	if (PyThread_acquire_lock(self->lock_lock, 0)) {
--- 88,93 ----
  
  static PyObject *
! lock_PyThread_release_lock(lockobject *self)
  {
  	/* Sanity check: the lock must be locked */
  	if (PyThread_acquire_lock(self->lock_lock, 0)) {
***************
*** 114,122 ****
  
  static PyObject *
! lock_locked_lock(lockobject *self, PyObject *args)
  {
- 	if (!PyArg_NoArgs(args))
- 		return NULL;
- 
  	if (PyThread_acquire_lock(self->lock_lock, 0)) {
  		PyThread_release_lock(self->lock_lock);
--- 111,116 ----
  
  static PyObject *
! lock_locked_lock(lockobject *self)
  {
  	if (PyThread_acquire_lock(self->lock_lock, 0)) {
  		PyThread_release_lock(self->lock_lock);
***************
*** 138,146 ****
  	 METH_OLDARGS, acquire_doc},
  	{"release_lock", (PyCFunction)lock_PyThread_release_lock, 
! 	 METH_OLDARGS, release_doc},
  	{"release",      (PyCFunction)lock_PyThread_release_lock, 
  	 METH_OLDARGS, release_doc},
  	{"locked_lock",  (PyCFunction)lock_locked_lock,  
! 	 METH_OLDARGS, locked_doc},
  	{"locked",       (PyCFunction)lock_locked_lock,  
  	 METH_OLDARGS, locked_doc},
--- 132,140 ----
  	 METH_OLDARGS, acquire_doc},
  	{"release_lock", (PyCFunction)lock_PyThread_release_lock, 
! 	 METH_NOARGS, release_doc},
  	{"release",      (PyCFunction)lock_PyThread_release_lock, 
  	 METH_OLDARGS, release_doc},
  	{"locked_lock",  (PyCFunction)lock_locked_lock,  
! 	 METH_NOARGS, locked_doc},
  	{"locked",       (PyCFunction)lock_locked_lock,  
  	 METH_OLDARGS, locked_doc},
***************
*** 268,275 ****
  
  static PyObject *
! thread_PyThread_exit_thread(PyObject *self, PyObject *args)
  {
- 	if (!PyArg_NoArgs(args))
- 		return NULL;
  	PyErr_SetNone(PyExc_SystemExit);
  	return NULL;
--- 262,267 ----
  
  static PyObject *
! thread_PyThread_exit_thread(PyObject *self)
  {
  	PyErr_SetNone(PyExc_SystemExit);
  	return NULL;
***************
*** 296,303 ****
  
  static PyObject *
! thread_PyThread_allocate_lock(PyObject *self, PyObject *args)
  {
- 	if (!PyArg_NoArgs(args))
- 		return NULL;
  	return (PyObject *) newlockobject();
  }
--- 288,293 ----
  
  static PyObject *
! thread_PyThread_allocate_lock(PyObject *self)
  {
  	return (PyObject *) newlockobject();
  }
***************
*** 310,318 ****
  
  static PyObject *
! thread_get_ident(PyObject *self, PyObject *args)
  {
  	long ident;
- 	if (!PyArg_NoArgs(args))
- 		return NULL;
  	ident = PyThread_get_thread_ident();
  	if (ident == -1) {
--- 300,306 ----
  
  static PyObject *
! thread_get_ident(PyObject *self)
  {
  	long ident;
  	ident = PyThread_get_thread_ident();
  	if (ident == -1) {
***************
*** 342,354 ****
  				start_new_doc},
  	{"allocate_lock",	(PyCFunction)thread_PyThread_allocate_lock, 
! 	 METH_OLDARGS, allocate_doc},
  	{"allocate",		(PyCFunction)thread_PyThread_allocate_lock, 
  	 METH_OLDARGS, allocate_doc},
  	{"exit_thread",		(PyCFunction)thread_PyThread_exit_thread, 
! 	 METH_OLDARGS, exit_doc},
  	{"exit",		(PyCFunction)thread_PyThread_exit_thread, 
  	 METH_OLDARGS, exit_doc},
  	{"get_ident",		(PyCFunction)thread_get_ident, 
! 	 METH_OLDARGS, get_ident_doc},
  #ifndef NO_EXIT_PROG
  	{"exit_prog",		(PyCFunction)thread_PyThread_exit_prog},
--- 330,342 ----
  				start_new_doc},
  	{"allocate_lock",	(PyCFunction)thread_PyThread_allocate_lock, 
! 	 METH_NOARGS, allocate_doc},
  	{"allocate",		(PyCFunction)thread_PyThread_allocate_lock, 
  	 METH_OLDARGS, allocate_doc},
  	{"exit_thread",		(PyCFunction)thread_PyThread_exit_thread, 
! 	 METH_NOARGS, exit_doc},
  	{"exit",		(PyCFunction)thread_PyThread_exit_thread, 
  	 METH_OLDARGS, exit_doc},
  	{"get_ident",		(PyCFunction)thread_get_ident, 
! 	 METH_NOARGS, get_ident_doc},
  #ifndef NO_EXIT_PROG
  	{"exit_prog",		(PyCFunction)thread_PyThread_exit_prog},