diff options
author | Michi Henning <michi@zeroc.com> | 2007-06-27 13:11:23 +1000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2007-06-27 13:11:23 +1000 |
commit | 11c9552bd13ae9f569dddad69939931349f7ee53 (patch) | |
tree | 9952dd7deddf483c616c1116971ebb3e983c0035 /cppe/config/TestUtil.py | |
parent | Remove obsolete feature from Windows installers. (diff) | |
download | ice-11c9552bd13ae9f569dddad69939931349f7ee53.tar.bz2 ice-11c9552bd13ae9f569dddad69939931349f7ee53.tar.xz ice-11c9552bd13ae9f569dddad69939931349f7ee53.zip |
Bug 2270.
Diffstat (limited to 'cppe/config/TestUtil.py')
-rw-r--r-- | cppe/config/TestUtil.py | 34 |
1 files changed, 7 insertions, 27 deletions
diff --git a/cppe/config/TestUtil.py b/cppe/config/TestUtil.py index 574c42db114..d7e7ed8628d 100644 --- a/cppe/config/TestUtil.py +++ b/cppe/config/TestUtil.py @@ -62,53 +62,33 @@ def isCygwin(): # The substring on sys.platform is required because some cygwin # versions return variations like "cygwin_nt-4.01". - if sys.platform[:6] == "cygwin": - return 1 - else: - return 0 + return sys.platform[:6] == "cygwin" def isWin32(): - if sys.platform == "win32" or isCygwin(): - return 1 - else: - return 0 + return sys.platform == "win32" or isCygwin() def isWin9x(): if isWin32(): - if os.environ.has_key("OS") and os.environ["OS"] == "Windows_NT": - return 0 - return 1 + return not (os.environ.has_key("OS") and os.environ["OS"] == "Windows_NT") else: return 0 def isSolaris(): - if sys.platform == "sunos5": - return 1 - else: - return 0 + return sys.platform == "sunos5" def isHpUx(): - if sys.platform == "hp-ux11": - return 1 - else: - return 0 + return sys.platform == "hp-ux11" def isAIX(): - if sys.platform in ['aix4', 'aix5']: - return 1 - else: - return 0 + return sys.platform in ['aix4', 'aix5'] def isDarwin(): - if sys.platform == "darwin": - return 1 - else: - return 0 + return sys.platform == "darwin" serverPids = [] def killServers(): |