From: Fred Drake Date: Sat, 13 Oct 2001 18:34:42 +0000 (+0000) Subject: Ignore execfile() return value; reported by Neal Norwitz. X-Git-Tag: v2.2.1c1~1295 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f902296a1889f9453ca0080525b8ffc1e21ed997;p=thirdparty%2FPython%2Fcpython.git Ignore execfile() return value; reported by Neal Norwitz. --- diff --git a/Lib/rexec.py b/Lib/rexec.py index cece5446d8d3..411fcc5e0680 100644 --- a/Lib/rexec.py +++ b/Lib/rexec.py @@ -259,7 +259,7 @@ class RExec(ihooks._Verbose): def r_execfile(self, file): m = self.add_module('__main__') - return execfile(file, m.__dict__) + execfile(file, m.__dict__) def r_import(self, mname, globals={}, locals={}, fromlist=[]): return self.importer.import_module(mname, globals, locals, fromlist)