From 518cd8b523412eb47d5eb02e658e9da89527bd03 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Sun, 20 Sep 2015 12:13:19 +0200 Subject: [PATCH] replace subprocess.mswindows --- popenasync.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/popenasync.py b/popenasync.py index df4944e..23898ff 100644 --- a/popenasync.py +++ b/popenasync.py @@ -23,7 +23,7 @@ def geterror (): else: null_byte = '\x00' -if subprocess.mswindows: +if sys.platform == 'win32': if sys.version_info >= (3,): # Test date should be in ascii. def encode(s): @@ -142,7 +142,7 @@ def _close(self, which): getattr(self, which).close() setattr(self, which, None) - if subprocess.mswindows: + if sys.platform == 'win32': def kill(self): # Recipes #http://me.in-berlin.de/doc/python/faq/windows.html#how-do-i-emulate-os-kill-in-windows