Windows build fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69123 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2011-09-17 19:19:15 +00:00
parent 10f0a0f57c
commit 5568e40385
3 changed files with 4 additions and 4 deletions

View File

@@ -394,18 +394,18 @@ def sip(options, args):
shutil.copy2(src, dest)
continue
with file(src, 'rb') as f:
with file(src, 'rt') as f:
srcTxt = f.read()
srcTxt = srcTxt.replace(tmpdir, cfg.SIPOUT)
# TODO remove lines starting with '#line'?
with file(dest, 'rb') as f:
with file(dest, 'rt') as f:
destTxt = f.read()
if srcTxt == destTxt:
pass
else:
msg('%s is changed, copying...' % os.path.basename(src))
f = file(dest, 'wb')
f = file(dest, 'wt')
f.write(srcTxt)
f.close()

View File

@@ -51,7 +51,6 @@ def run():
#else
wxPyRaiseNotImplemented();
_isErr = 1;
return NULL;
#endif
""")

View File

@@ -44,6 +44,7 @@ def run():
c = module.find('wxTextEntry')
c.abstract = True
tools.removeVirtuals(c)
c = module.find('wxTextCtrl')
c.find('HitTest').overloads = []