diff options
-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,): |