From: Guido van Rossum Date: Mon, 18 Jun 2001 12:33:36 +0000 (+0000) Subject: Fix SF bug #433904 (Alex Martelli) - all s_* methods return None only. X-Git-Tag: v2.2a3~1531 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=183a2f243768ffd15ff4324b317ba880da1094ef;p=thirdparty%2FPython%2Fcpython.git Fix SF bug #433904 (Alex Martelli) - all s_* methods return None only. --- diff --git a/Lib/rexec.py b/Lib/rexec.py index 6a7c2071a016..cb397ce75c96 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(...)