aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorempyrical <empyrical@users.noreply.github.com>2015-09-17 02:49:04 -0600
committerempyrical <empyrical@users.noreply.github.com>2015-09-17 02:49:04 -0600
commit9c63384d3e7453c518e55094f5b8639fd0cbcfb5 (patch)
treec24d6cd598fef5728e946a7a2f950c9e6dcad018
parent0dd99fb749b6b68a79c7f7a9faaa90595e3be9e2 (diff)
Don't use the 'mswindows' private attribute
-rw-r--r--popenasync.py5
1 files changed, 1 insertions, 4 deletions
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,):