summaryrefslogtreecommitdiff
path: root/QMTest
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-04-03 17:49:56 -0400
committerWilliam Deegan <bill@baddogconsulting.com>2017-04-03 17:49:56 -0400
commit7459e33e387c7e387d0e9ac54b3df013e4ea9643 (patch)
tree51f60bb7f6239e6e0c5ed2cdf7c2af7163831c63 /QMTest
parenta6514ee88e6b39800d203b012cdd8743756d95ae (diff)
downloadscons-7459e33e387c7e387d0e9ac54b3df013e4ea9643.tar.gz
py2/3 mode=r/w fixes
Diffstat (limited to 'QMTest')
-rw-r--r--QMTest/TestSCons.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/QMTest/TestSCons.py b/QMTest/TestSCons.py
index c35a2b37..b6366a67 100644
--- a/QMTest/TestSCons.py
+++ b/QMTest/TestSCons.py
@@ -871,12 +871,12 @@ output = None
impl = 0
opt_string = ''
for opt, arg in cmd_opts:
- if opt == '-o': output = open(arg, 'wb')
+ if opt == '-o': output = open(arg, 'w')
elif opt == '-i': impl = 1
else: opt_string = opt_string + ' ' + opt
output.write("/* mymoc.py%s */\\n" % opt_string)
for a in args:
- contents = open(a, 'rb').read()
+ contents = open(a, 'r').read()
a = a.replace('\\\\', '\\\\\\\\')
subst = r'{ my_qt_symbol( "' + a + '\\\\n" ); }'
if impl:
@@ -897,7 +897,7 @@ source = None
opt_string = ''
for arg in sys.argv[1:]:
if output_arg:
- output = open(arg, 'wb')
+ output = open(arg, 'w')
output_arg = 0
elif impl_arg:
impl = arg
@@ -911,7 +911,7 @@ for arg in sys.argv[1:]:
else:
if source:
sys.exit(1)
- source = open(arg, 'rb')
+ source = open(arg, 'r')
sourceFile = arg
output.write("/* myuic.py%s */\\n" % opt_string)
if impl: