summaryrefslogtreecommitdiffstats
path: root/QMTest/TestCmd.py
diff options
context:
space:
mode:
authorGreg Noel <GregNoel@tigris.org>2010-04-17 13:16:00 (GMT)
committerGreg Noel <GregNoel@tigris.org>2010-04-17 13:16:00 (GMT)
commite254cdf344ed0a466661b319dc019f2400ad12f3 (patch)
tree61e16d3edbaa1230dfa20699c4584c87d9b3f725 /QMTest/TestCmd.py
parente4b439f4265613556de0124593ac86898d6f52c7 (diff)
downloadSCons-e254cdf344ed0a466661b319dc019f2400ad12f3.zip
SCons-e254cdf344ed0a466661b319dc019f2400ad12f3.tar.gz
SCons-e254cdf344ed0a466661b319dc019f2400ad12f3.tar.bz2
http://scons.tigris.org/issues/show_bug.cgi?id=2345
Fix the 'assignment to True or False' and the '__getitem__ not supported for exception classes' deprecation warnings.
Diffstat (limited to 'QMTest/TestCmd.py')
-rw-r--r--QMTest/TestCmd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/QMTest/TestCmd.py b/QMTest/TestCmd.py
index 1568b0d..1dff4a6 100644
--- a/QMTest/TestCmd.py
+++ b/QMTest/TestCmd.py
@@ -765,7 +765,7 @@ class Popen(subprocess.Popen):
try:
written = os.write(self.stdin.fileno(), input)
except OSError, why:
- if why[0] == errno.EPIPE: #broken pipe
+ if why.args[0] == errno.EPIPE: #broken pipe
return self._close('stdin')
raise