From: Guido van Rossum Date: Mon, 18 Jun 2001 12:34:31 +0000 (+0000) Subject: Applying this to the 2.1.1 branch: X-Git-Tag: v2.1.1c1~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eff2a98727f9ae2aa4b5bcf93d79e0010782839c;p=thirdparty%2FPython%2Fcpython.git Applying this to the 2.1.1 branch: 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(...)