summaryrefslogtreecommitdiff
path: root/php/config/TestUtil.py
diff options
context:
space:
mode:
Diffstat (limited to 'php/config/TestUtil.py')
-rw-r--r--php/config/TestUtil.py20
1 files changed, 4 insertions, 16 deletions
diff --git a/php/config/TestUtil.py b/php/config/TestUtil.py
index 26e376903eb..7e3ed2db066 100644
--- a/php/config/TestUtil.py
+++ b/php/config/TestUtil.py
@@ -79,31 +79,19 @@ 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 isDarwin():
- if sys.platform == "darwin":
- return 1
- else:
- return 0
+ return sys.platform == "darwin"
def isSolaris():
- if sys.platform == "sunos5":
- return 1
- else:
- return 0
+ return sys.platform == "sunos5"
def closePipe(pipe):