summaryrefslogtreecommitdiffstats
path: root/Lib/rexec.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-06-18 12:33:36 (GMT)
committerGuido van Rossum <guido@python.org>2001-06-18 12:33:36 (GMT)
commit183a2f243768ffd15ff4324b317ba880da1094ef (patch)
tree32bf81496238c8eb6fe1d58b39b3c86aef473fb3 /Lib/rexec.py
parentf3b30747d660f3cecfbb5a8136d5dc30770c0882 (diff)
downloadcpython-183a2f243768ffd15ff4324b317ba880da1094ef.zip
cpython-183a2f243768ffd15ff4324b317ba880da1094ef.tar.gz
cpython-183a2f243768ffd15ff4324b317ba880da1094ef.tar.bz2
Fix SF bug #433904 (Alex Martelli) - all s_* methods return None only.
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(...)