Index: subprocess2.py |
diff --git a/subprocess2.py b/subprocess2.py |
index 64a23a8bc1942c03196bd2b93c297101f30e3981..acfe4a9a504e40648e5a0e488da7797b4858e282 100644 |
--- a/subprocess2.py |
+++ b/subprocess2.py |
@@ -207,7 +207,7 @@ def communicate(args, timeout=None, **kwargs): |
kwargs['stdin'] = open(os.devnull, 'r') |
stdin = None |
else: |
- assert isinstance(stdin, str) |
+ assert isinstance(stdin, basestring) |
# When stdin is passed as an argument, use it as the actual input data and |
# set the Popen() parameter accordingly. |
kwargs['stdin'] = PIPE |