diff options
| author | Bernard Xiong <[email protected]> | 2018-11-10 18:29:08 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2018-11-10 18:29:08 +0800 |
| commit | d687cfb22841ba0e1ccf4c946f672dfaeae239cb (patch) | |
| tree | af7d6547eef20e642e1230c141585507f839924e /tools/genconf.py | |
| parent | b69baa965809420fc3fcd19dd55fc1126a68c08d (diff) | |
[Tools] Change building script for Py3
Diffstat (limited to 'tools/genconf.py')
| -rw-r--r-- | tools/genconf.py | 4 |
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)) |
