diff options
author | empyrical <empyrical@users.noreply.github.com> | 2015-09-17 02:49:04 -0600 |
---|---|---|
committer | Christian Tismer <ctismer@gmail.com> | 2015-09-17 11:45:03 +0200 |
commit | 957a59ea6d852eb4c8d8ca8915d9986612189dc9 (patch) | |
tree | 8b00580b08153a6d39a23497bc41deabef4a5bbe /popenasync.py | |
parent | c4b1b814fab3f5c7617890ef46959b43c415cba1 (diff) |
Don't use the 'mswindows' private attribute
Diffstat (limited to 'popenasync.py')
-rw-r--r-- | popenasync.py | 5 |
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,): |