Fix sense of one test broken in first version.
Change-Id: I0374d68320fd4591c8f3e8632322682b5c573f39
Signed-off-by: Mats Wichmann <mats@linux.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/17839
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
if 'msys_nt' in host:
host = 'msys_nt'
-if not host_target_map.has_key(host):
+if host not in host_target_map:
print "\nError: Current system (%s) isn't supported\n" % host
Exit(1)
# the targets. On physical files we can do this with the LISTCMD, but on
# non-physical files we hope the user knows the target files, so we inject
# this knowledge into the return target.
- if env.has_key("UNPACKLIST") :
+ if "UNPACKLIST" in env:
if not SCons.Util.is_List(env["UNPACKLIST"]) and not SCons.Util.is_String(env["UNPACKLIST"]) :
raise SCons.Errors.StopError( "manual target list of [%s] must be a string or list" % (source[0]) )
if not env["UNPACKLIST"] :
elif target_os in ['windows']:
# Avoid building the same StaticLibrary in more than one environment, by using the
# IOTIVITY_GTEST_HAS_BEEN_BUILT environment variable
- if not env.has_key('IOTIVITY_GTEST_HAS_BEEN_BUILT'):
+ if 'IOTIVITY_GTEST_HAS_BEEN_BUILT' not in env:
gtest_env.AppendUnique(CPPPATH = [ gtest_dir ])
gtest_build_env = gtest_env.Clone()
gtest_build_env.AppendUnique(CPPPATH = [ os.path.join(gtest_dir, 'include') ])
host = platform.system().lower()
-if not host_target_map.has_key(host):
+if host not in host_target_map:
print "\nError: Current system (%s) isn't supported\n" % host
Exit(1)
host = platform.system().lower()
-if not host_target_map.has_key(host):
+if host not in host_target_map:
print "\nError: Current system (%s) isn't supported\n" % host
Exit(1)
host = platform.system().lower()
-if not host_target_map.has_key(host):
+if host not in host_target_map:
print "\nError: Current system (%s) isn't supported\n" % host
Exit(1)
host = platform.system().lower()
-if not host_target_map.has_key(host):
+if host not in host_target_map:
print "\nError: Current system (%s) isn't supported\n" % host
Exit(1)