diff options
author | empyrical <empyrical@users.noreply.github.com> | 2015-09-17 02:49:04 -0600 |
---|---|---|
committer | empyrical <empyrical@users.noreply.github.com> | 2015-09-17 02:49:04 -0600 |
commit | 9c63384d3e7453c518e55094f5b8639fd0cbcfb5 (patch) | |
tree | c24d6cd598fef5728e946a7a2f950c9e6dcad018 | |
parent | 0dd99fb749b6b68a79c7f7a9faaa90595e3be9e2 (diff) |
Don't use the 'mswindows' private attribute
-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,): |