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/eclipse.py | |
| parent | 1e4a463f363dcde37f14d0ae2772360f4ff87a5e (diff) | |
[tools] Python 3 compatibility support
Diffstat (limited to 'tools/eclipse.py')
| -rw-r--r-- | tools/eclipse.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/eclipse.py b/tools/eclipse.py index 4d5e28e02e..6498c1c9f6 100644 --- a/tools/eclipse.py +++ b/tools/eclipse.py @@ -212,7 +212,7 @@ def HandleToolOption(tools, env, project, reset): linker_nostart_option = option elif option.get('id').find('linker.libs') != -1: linker_libs_option = option - elif option.get('id').find('linker.paths') != -1 and env.has_key('LIBPATH'): + elif option.get('id').find('linker.paths') != -1 and 'LIBPATH' in env: linker_paths_option = option elif option.get('id').find('linker.usenewlibnano') != -1: linker_newlib_nano_option = option @@ -317,7 +317,7 @@ def HandleToolOption(tools, env, project, reset): option.remove(item) # add new libs - if env.has_key('LIBS'): + if 'LIBS' in env: for lib in env['LIBS']: formatedLib = ConverToRttEclipseLibFormat(lib) SubElement(option, 'listOptionValue', { |
