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/ua.py | |
| parent | b69baa965809420fc3fcd19dd55fc1126a68c08d (diff) | |
[Tools] Change building script for Py3
Diffstat (limited to 'tools/ua.py')
| -rw-r--r-- | tools/ua.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/ua.py b/tools/ua.py index 31d2641031..0505f3596c 100644 --- a/tools/ua.py +++ b/tools/ua.py @@ -52,11 +52,11 @@ def PrepareUA(project, RTT_ROOT, BSP_ROOT): for group in project: # get each include path - if group.has_key('CPPPATH') and group['CPPPATH']: + if 'CPPPATH' in group and group['CPPPATH']: CPPPATH += group['CPPPATH'] # get each group's definitions - if group.has_key('CPPDEFINES') and group['CPPDEFINES']: + if 'CPPDEFINES' in group and group['CPPDEFINES']: CPPDEFINES += group['CPPDEFINES'] if len(CPPPATH): |
