summaryrefslogtreecommitdiff
path: root/tools/ua.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/ua.py
parentb69baa965809420fc3fcd19dd55fc1126a68c08d (diff)
[Tools] Change building script for Py3
Diffstat (limited to 'tools/ua.py')
-rw-r--r--tools/ua.py4
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):