summaryrefslogtreecommitdiffstats
path: root/Lib/rexec.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/rexec.py')
-rw-r--r--Lib/rexec.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/Lib/rexec.py b/Lib/rexec.py
index 6a7c207..cb397ce 100644
--- a/Lib/rexec.py
+++ b/Lib/rexec.py
@@ -332,24 +332,25 @@ class RExec(ihooks._Verbose):
r = apply(func, args)
finally:
self.restore_files()
+ return r
def s_exec(self, *args):
- self.s_apply(self.r_exec, args)
+ return self.s_apply(self.r_exec, args)
def s_eval(self, *args):
- self.s_apply(self.r_eval, args)
+ return self.s_apply(self.r_eval, args)
def s_execfile(self, *args):
- self.s_apply(self.r_execfile, args)
+ return self.s_apply(self.r_execfile, args)
def s_import(self, *args):
- self.s_apply(self.r_import, args)
+ return self.s_apply(self.r_import, args)
def s_reload(self, *args):
- self.s_apply(self.r_reload, args)
+ return self.s_apply(self.r_reload, args)
def s_unload(self, *args):
- self.s_apply(self.r_unload, args)
+ return self.s_apply(self.r_unload, args)
# Restricted open(...)