summaryrefslogtreecommitdiffstats
path: root/Tools/freeze/makeconfig.py
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-03-18 11:27:58 (GMT)
committerEric S. Raymond <esr@thyrsus.com>2001-03-18 11:27:58 (GMT)
commit1bb515b0e548d0ff39fffe3326c5a08f46cd7d55 (patch)
tree6747cee262aa2ec73f4f062cca12346709a52b0f /Tools/freeze/makeconfig.py
parent0f33604e1783d2302006e79713d5d279093405b3 (diff)
downloadcpython-1bb515b0e548d0ff39fffe3326c5a08f46cd7d55.zip
cpython-1bb515b0e548d0ff39fffe3326c5a08f46cd7d55.tar.gz
cpython-1bb515b0e548d0ff39fffe3326c5a08f46cd7d55.tar.bz2
Teach Tools/freeze/makeconfig.py and Tools/freeze/parsesetup.py to use
the re package rather than the obsolete regex.
Diffstat (limited to 'Tools/freeze/makeconfig.py')
-rw-r--r--Tools/freeze/makeconfig.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tools/freeze/makeconfig.py b/Tools/freeze/makeconfig.py
index 5d1ba2c..11c97d8 100644
--- a/Tools/freeze/makeconfig.py
+++ b/Tools/freeze/makeconfig.py
@@ -1,4 +1,4 @@
-import regex
+import re
# Write the config.c file
@@ -6,8 +6,8 @@ import regex
never = ['marshal', '__main__', '__builtin__', 'sys', 'exceptions']
def makeconfig(infp, outfp, modules, with_ifdef=0):
- m1 = regex.compile('-- ADDMODULE MARKER 1 --')
- m2 = regex.compile('-- ADDMODULE MARKER 2 --')
+ m1 = re.compile('-- ADDMODULE MARKER 1 --')
+ m2 = re.compile('-- ADDMODULE MARKER 2 --')
while 1:
line = infp.readline()
if not line: break