diff options
author | Benoit Foucher <benoit@zeroc.com> | 2012-11-14 15:08:01 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2012-11-14 15:08:01 +0100 |
commit | 04c8063331aef8761df17ad3b79a36f63ca58506 (patch) | |
tree | 4a5f9c957dd5d4d0695f420d90e0d6f103fab0ff /scripts/TestUtil.py | |
parent | Rebuilt dependencies (diff) | |
download | ice-04c8063331aef8761df17ad3b79a36f63ca58506.tar.bz2 ice-04c8063331aef8761df17ad3b79a36f63ca58506.tar.xz ice-04c8063331aef8761df17ad3b79a36f63ca58506.zip |
Fixed ICE-4947 - don't use has_key in Python scripts, it's removed from 3.0
Diffstat (limited to 'scripts/TestUtil.py')
-rwxr-xr-x | scripts/TestUtil.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/TestUtil.py b/scripts/TestUtil.py index d3bf808d437..0feae226f23 100755 --- a/scripts/TestUtil.py +++ b/scripts/TestUtil.py @@ -98,7 +98,7 @@ def isMINGW(): return False # Ruby Installer DEVKIT sets the RI_DEVKIT environment variable, # we check for this variable to detect the Ruby MINGW environment. - return os.environ.has_key("RI_DEVKIT") + return "RI_DEVKIT" in os.environ def isVC90(): if not isWin32(): @@ -896,8 +896,7 @@ def getCommandLine(exe, config, options = ""): output.write("ruby '" + exe + "' ") elif config.silverlight and config.lang == "cs" and config.type == "client": xap = "%s.xap" % os.path.basename(os.getcwd()) - if (os.environ.has_key("PROCESSOR_ARCHITECTURE") and os.environ["PROCESSOR_ARCHITECTURE"] == "AMD64") or \ - (os.environ.has_key("PROCESSOR_ARCHITEW6432") and os.environ["PROCESSOR_ARCHITEW6432"] == ""): + if os.environ.get("PROCESSOR_ARCHITECTURE") == "AMD64" or os.environ.get("PROCESSOR_ARCHITEW6432") == "": output.write("%s (x86)\Microsoft Silverlight\sllauncher.exe /emulate:%s" % ( os.environ["PROGRAMFILES"], xap)) else: output.write("%s\Microsoft Silverlight\sllauncher.exe /emulate:%s" % ( os.environ["PROGRAMFILES"], xapPath)) |