aboutsummaryrefslogtreecommitdiffstats
path: root/popenasync.py
diff options
context:
space:
mode:
authorempyrical <empyrical@users.noreply.github.com>2015-09-17 02:49:04 -0600
committerChristian Tismer <ctismer@gmail.com>2015-09-17 11:45:03 +0200
commit957a59ea6d852eb4c8d8ca8915d9986612189dc9 (patch)
tree8b00580b08153a6d39a23497bc41deabef4a5bbe /popenasync.py
parentc4b1b814fab3f5c7617890ef46959b43c415cba1 (diff)
Don't use the 'mswindows' private attribute
Diffstat (limited to 'popenasync.py')
-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,):