Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Unified Diff: subprocess2.py

Issue 6878069: Unicode input is also accepted for stdin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698