summaryrefslogtreecommitdiffstats
path: root/Lib/rexec.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-08-07 19:49:15 (GMT)
committerFred Drake <fdrake@acm.org>2001-08-07 19:49:15 (GMT)
commit56b5fdd295d7e4be64036529cbbb6ffd252ac6bc (patch)
tree028024d1c2287c8f41bb32bcaf652457dd46d4b1 /Lib/rexec.py
parentc9fadf991c7905d9e483b65af8d9708fdcf44e71 (diff)
downloadcpython-56b5fdd295d7e4be64036529cbbb6ffd252ac6bc.zip
cpython-56b5fdd295d7e4be64036529cbbb6ffd252ac6bc.tar.gz
cpython-56b5fdd295d7e4be64036529cbbb6ffd252ac6bc.tar.bz2
Remove make_re() function; this is no longer needed since _sre and pcre
are now allowed by ok_builtin_modules. This effectively backs out revision 1.26. This closes SF bug #448546.
Diffstat (limited to 'Lib/rexec.py')
-rw-r--r--Lib/rexec.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/Lib/rexec.py b/Lib/rexec.py
index 307c038..90c8f6f 100644
--- a/Lib/rexec.py
+++ b/Lib/rexec.py
@@ -154,9 +154,6 @@ class RExec(ihooks._Verbose):
self.make_sys()
self.loader = RModuleLoader(self.hooks, verbose)
self.importer = RModuleImporter(self.loader, verbose)
- # but since re isn't normally built-in, we can add it at the end;
- # we need the imported to be set before this can be imported.
- self.make_re()
def set_trusted_path(self):
# Set the path from which dynamic modules may be loaded.
@@ -202,13 +199,6 @@ class RExec(ihooks._Verbose):
for key, value in os.environ.items():
e[key] = value
- def make_re(self):
- dst = self.add_module("re")
- src = self.r_import("pre")
- for name in dir(src):
- if name != "__name__":
- setattr(dst, name, getattr(src, name))
-
def make_sys(self):
m = self.copy_only(sys, self.ok_sys_names)
m.modules = self.modules