[Python-checkins] r46518 - python/trunk/Modules/_sre.c
georg.brandl
python-checkins at python.org
Mon May 29 00:38:57 CEST 2006
Author: georg.brandl
Date: Mon May 29 00:38:57 2006
New Revision: 46518
Modified:
python/trunk/Modules/_sre.c
Log:
METH_NOARGS functions do get called with two args.
Modified: python/trunk/Modules/_sre.c
==============================================================================
--- python/trunk/Modules/_sre.c (original)
+++ python/trunk/Modules/_sre.c Mon May 29 00:38:57 2006
@@ -1623,7 +1623,7 @@
static PyObject*pattern_scanner(PatternObject*, PyObject*);
static PyObject *
-sre_codesize(PyObject* self)
+sre_codesize(PyObject* self, PyObject *unused)
{
return Py_BuildValue("i", sizeof(SRE_CODE));
}
@@ -2467,7 +2467,7 @@
}
static PyObject*
-pattern_copy(PatternObject* self)
+pattern_copy(PatternObject* self, PyObject *unused)
{
#ifdef USE_BUILTIN_COPY
PatternObject* copy;
@@ -3008,7 +3008,7 @@
}
static PyObject*
-match_copy(MatchObject* self)
+match_copy(MatchObject* self, PyObject *unused)
{
#ifdef USE_BUILTIN_COPY
MatchObject* copy;
@@ -3225,7 +3225,7 @@
}
static PyObject*
-scanner_match(ScannerObject* self)
+scanner_match(ScannerObject* self, PyObject *unused)
{
SRE_STATE* state = &self->state;
PyObject* match;
@@ -3256,7 +3256,7 @@
static PyObject*
-scanner_search(ScannerObject* self)
+scanner_search(ScannerObject* self, PyObject *unused)
{
SRE_STATE* state = &self->state;
PyObject* match;
More information about the Python-checkins
mailing list