summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-05-16 22:14:13 +0300
committerBerker Peksag <berker.peksag@gmail.com>2016-05-16 22:15:18 +0300
commit2e7c71a65bde37e59773298f01b751c0bee32ecc (patch)
tree3f04a5f9e5731e2d9f261358e51d29c8fe2ecc50
parent86cf088aea33b6e27b7b05fc904c403363245ae5 (diff)
downloadpyramid-2e7c71a65bde37e59773298f01b751c0bee32ecc.tar.gz
pyramid-2e7c71a65bde37e59773298f01b751c0bee32ecc.tar.bz2
pyramid-2e7c71a65bde37e59773298f01b751c0bee32ecc.zip
Simplify Windows detection code
-rw-r--r--CONTRIBUTORS.txt2
-rw-r--r--pyramid/compat.py5
2 files changed, 3 insertions, 4 deletions
diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt
index 55fdf096b..762793d0b 100644
--- a/CONTRIBUTORS.txt
+++ b/CONTRIBUTORS.txt
@@ -268,3 +268,5 @@ Contributors
- Arian Maykon de A. Diógenes, 2016/04/13
- Vincent Férotin, 2016/05/08
+
+- Berker Peksag, 2016/05/16
diff --git a/pyramid/compat.py b/pyramid/compat.py
index 2bfbabb8e..3f38b88a6 100644
--- a/pyramid/compat.py
+++ b/pyramid/compat.py
@@ -3,10 +3,7 @@ import platform
import sys
import types
-if platform.system() == 'Windows': # pragma: no cover
- WIN = True
-else: # pragma: no cover
- WIN = False
+WIN = platform.system() == 'Windows'
try: # pragma: no cover
import __pypy__