From 957a59ea6d852eb4c8d8ca8915d9986612189dc9 Mon Sep 17 00:00:00 2001 From: empyrical Date: Thu, 17 Sep 2015 02:49:04 -0600 Subject: Don't use the 'mswindows' private attribute --- popenasync.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'popenasync.py') diff --git a/popenasync.py b/popenasync.py index 78ae1cbf3..eb1a238fc 100644 --- a/popenasync.py +++ b/popenasync.py @@ -23,10 +23,7 @@ if sys.version_info >= (3,): else: null_byte = '\x00' -if hasattr(subprocess, 'mswindows'): - mswindows = subprocess.mswindows -else: - mswindows = subprocess._mswindows +mswindows = (sys.platform == "win32") if mswindows: if sys.version_info >= (3,): -- cgit v1.2.3