From 2e7c71a65bde37e59773298f01b751c0bee32ecc Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Mon, 16 May 2016 22:14:13 +0300 Subject: Simplify Windows detection code --- CONTRIBUTORS.txt | 2 ++ pyramid/compat.py | 5 +---- 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__ -- cgit v1.2.3