summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorCarnë Draug <carandraug+dev@gmail.com>2015-09-26 19:42:53 (GMT)
committerCarnë Draug <carandraug+dev@gmail.com>2015-09-26 19:42:53 (GMT)
commit699440f601523b736d98cfef8f1bddcc2f184a39 (patch)
treee4dcadbc3d2b43322ef219a74de1d85c759dc65d /doc
parent2355e88c9637174f10c3dec3efb15ee6626fb3e5 (diff)
downloadSCons-699440f601523b736d98cfef8f1bddcc2f184a39.zip
SCons-699440f601523b736d98cfef8f1bddcc2f184a39.tar.gz
SCons-699440f601523b736d98cfef8f1bddcc2f184a39.tar.bz2
doc: do not recommend os.popen which is deprecated in python
Diffstat (limited to 'doc')
-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>