diff options
Diffstat (limited to 'app-misc/golly/files/golly-3.3-allow-py23-exec.patch')
-rw-r--r-- | app-misc/golly/files/golly-3.3-allow-py23-exec.patch | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/app-misc/golly/files/golly-3.3-allow-py23-exec.patch b/app-misc/golly/files/golly-3.3-allow-py23-exec.patch deleted file mode 100644 index e46b608ed6c5..000000000000 --- a/app-misc/golly/files/golly-3.3-allow-py23-exec.patch +++ /dev/null @@ -1,12 +0,0 @@ -'execfile' is python-2-only. 'exec/open' works for both python2 and python3. ---- a/gui-wx/wxpython.cpp -+++ b/gui-wx/wxpython.cpp -@@ -3356,7 +3388,7 @@ void RunPythonScript(const wxString& filepath) - // for the global namespace so that this script cannot change the - // globals of a caller script (which is possible now that RunScript - // is re-entrant) -- wxString command = wxT("execfile('") + fpath + wxT("',{})"); -+ wxString command = wxT("exec(open('") + fpath + wxT("').read(),{})"); - PyRun_SimpleString(command.mb_str(wxConvLocal)); - // don't use wxConvUTF8 in above line because caller has already converted - // filepath to decomposed UTF8 if on a Mac |