mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 01:30:07 +01:00
Some little tweaks and fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71659 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -771,9 +771,11 @@ def myExecfile(filename, ns):
|
||||
if sys.version_info < (3,):
|
||||
execfile(filename, ns)
|
||||
else:
|
||||
source = open(filename, 'r').read()
|
||||
f = open(filename, 'r')
|
||||
source = f.read()
|
||||
f.close()
|
||||
exec(source, ns)
|
||||
|
||||
|
||||
|
||||
def textfile_open(filename, mode='rt'):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user