diff options
Diffstat (limited to 'popenasync.py')
-rw-r--r-- | popenasync.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/popenasync.py b/popenasync.py index cfd0e13ad..eedc2fd8b 100644 --- a/popenasync.py +++ b/popenasync.py @@ -68,10 +68,10 @@ if mswindows: if sys.version_info >= (3,): # Test date should be in ascii. def encode(s): - return s.encode('ascii') - + return s.encode('ascii', 'ignore') + def decode(b): - return b.decode('ascii') + return b.decode('ascii', 'ignore') else: # Strings only; do nothing def encode(s): |