diff options
| author | Bernard Xiong <[email protected]> | 2021-04-10 13:52:07 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-04-10 13:52:07 +0800 |
| commit | 76bd981addf88212ea932f6fd8d10b3bac2f63d4 (patch) | |
| tree | 885fac7725b5f76d63eadea2e94ec4280373f182 /tools/eclipse.py | |
| parent | 2cf49c58f5d6a8797851a07e8cd1ab2ae2fd840f (diff) | |
| parent | 510955ba42cb6c040598d885c640ba50bbb885e4 (diff) | |
Merge pull request #4567 from enkiller/0405
[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', { |
