summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2015-09-29 22:32:37 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2015-09-29 22:32:37 (GMT)
commit57c3cb3cda988dbcbccd62b9595d7a1a2c04c069 (patch)
treeec2679c0bdd419ed6213c685bcafacf0c49518fa
parent1c54e91794852de54920529bd78603859ef2e10a (diff)
parent699440f601523b736d98cfef8f1bddcc2f184a39 (diff)
downloadSCons-57c3cb3cda988dbcbccd62b9595d7a1a2c04c069.zip
SCons-57c3cb3cda988dbcbccd62b9595d7a1a2c04c069.tar.gz
SCons-57c3cb3cda988dbcbccd62b9595d7a1a2c04c069.tar.bz2
Merged in carandraug/scons (pull request #261)
doc: do not recommend os.popen which is deprecated in python
-rw-r--r--doc/user/tasks.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/user/tasks.xml b/doc/user/tasks.xml
index 0bdf678..8026a53 100644
--- a/doc/user/tasks.xml
+++ b/doc/user/tasks.xml
@@ -96,8 +96,8 @@ filenames = [x for x in filenames if os.path.splitext(x)[1] in extensions]
<example>
<title>The "backtick function": run a shell command and capture the
output</title>
-<programlisting>import os
-output = os.popen(command).read()
+<programlisting>import subprocess
+output = subprocess.check_output(command)
</programlisting>
</example>