diff options
| author | tangyuxin <[email protected]> | 2021-04-05 11:59:54 +0800 |
|---|---|---|
| committer | tangyuxin <[email protected]> | 2021-04-05 12:11:14 +0800 |
| commit | 510955ba42cb6c040598d885c640ba50bbb885e4 (patch) | |
| tree | cbc5711b24fee59b170ac7e557ae9bd1277f7a16 /tools/ses.py | |
| parent | 1e4a463f363dcde37f14d0ae2772360f4ff87a5e (diff) | |
[tools] Python 3 compatibility support
Diffstat (limited to 'tools/ses.py')
| -rw-r--r-- | tools/ses.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/ses.py b/tools/ses.py index dcd9d34442..cc513f0baa 100644 --- a/tools/ses.py +++ b/tools/ses.py @@ -59,14 +59,14 @@ def SESProject(env) : group_tree = SDKAddGroup(project_node, group['name'], group['src'], project_path) # get each group's cc flags - if group.has_key('CCFLAGS') and group['CCFLAGS']: + if 'CCFLAGS' in group and group['CCFLAGS']: if CCFLAGS: CCFLAGS += ' ' + group['CCFLAGS'] else: CCFLAGS += group['CCFLAGS'] # get each group's link flags - if group.has_key('LINKFLAGS') and group['LINKFLAGS']: + if 'LINKFLAGS' in group and group['LINKFLAGS']: if LINKFLAGS: LINKFLAGS += ' ' + group['LINKFLAGS'] else: |
