summaryrefslogtreecommitdiffstats
path: root/Modules/_sre.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-03-16 06:30:02 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-03-16 06:30:02 (GMT)
commit94a9c09e109706af64ae8796882baab2af25be2f (patch)
treeba1884845b6de1e3b6e930c735ea58df1e658ad5 /Modules/_sre.c
parent559e88be2816d6ce382ef8c079ef68ca9dcbbbee (diff)
downloadcpython-94a9c09e109706af64ae8796882baab2af25be2f.zip
cpython-94a9c09e109706af64ae8796882baab2af25be2f.tar.gz
cpython-94a9c09e109706af64ae8796882baab2af25be2f.tar.bz2
Rename sre.py -> re.py
Diffstat (limited to 'Modules/_sre.c')
-rw-r--r--Modules/_sre.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Modules/_sre.c b/Modules/_sre.c
index 413ae09..bd8f890 100644
--- a/Modules/_sre.c
+++ b/Modules/_sre.c
@@ -51,6 +51,8 @@ static char copyright[] =
#define SRE_MODULE "sre"
#endif
+#define SRE_PY_MODULE "re"
+
/* defining this one enables tracing */
#undef VERBOSE
@@ -2455,7 +2457,7 @@ pattern_subx(PatternObject* self, PyObject* template, PyObject* string,
} else {
/* not a literal; hand it over to the template compiler */
filter = call(
- SRE_MODULE, "_subx",
+ SRE_PY_MODULE, "_subx",
PyTuple_Pack(2, self, template)
);
if (!filter)
@@ -2872,7 +2874,7 @@ match_expand(MatchObject* self, PyObject* args)
/* delegate to Python code */
return call(
- SRE_MODULE, "_expand",
+ SRE_PY_MODULE, "_expand",
PyTuple_Pack(3, self->pattern, self, template)
);
}