summaryrefslogtreecommitdiff
path: root/tools/genconf.py
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2018-11-10 18:29:08 +0800
committerBernard Xiong <[email protected]>2018-11-10 18:29:08 +0800
commitd687cfb22841ba0e1ccf4c946f672dfaeae239cb (patch)
treeaf7d6547eef20e642e1230c141585507f839924e /tools/genconf.py
parentb69baa965809420fc3fcd19dd55fc1126a68c08d (diff)
[Tools] Change building script for Py3
Diffstat (limited to 'tools/genconf.py')
-rw-r--r--tools/genconf.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/genconf.py b/tools/genconf.py
index de8681e1f8..d033c4007d 100644
--- a/tools/genconf.py
+++ b/tools/genconf.py
@@ -6,7 +6,7 @@ def genconfig() :
PreProcessor = SCons.cpp.PreProcessor()
try:
- f = file('rtconfig.h', 'r')
+ f = open('rtconfig.h', 'r')
contents = f.read()
f.close()
except :
@@ -16,7 +16,7 @@ def genconfig() :
options = PreProcessor.cpp_namespace
try:
- f = file('.config', 'w')
+ f = open('.config', 'w')
for (opt, value) in options.items():
if type(value) == type(1):
f.write("CONFIG_%s=%d\n" % (opt, value))