Index: subprocess2.py |
diff --git a/subprocess2.py b/subprocess2.py |
index 043194f47c5690a12a72c2d02c3ec9c06cd99650..364aace886009ab18322524f6e8f8bc6f97a03d3 100644 |
--- a/subprocess2.py |
+++ b/subprocess2.py |
@@ -295,9 +295,9 @@ class Popen(subprocess.Popen): |
# This thread needs to be optimized for speed. |
while threads: |
item = queue.get() |
- if item[0] is 'stdout': |
+ if item[0] == 'stdout': |
self.stdout_cb(item[1]) |
- elif item[0] is 'stderr': |
+ elif item[0] == 'stderr': |
self.stderr_cb(item[1]) |
else: |
# A thread terminated. |