diff options
author | William Deegan <bill@baddogconsulting.com> | 2015-09-29 22:32:37 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2015-09-29 22:32:37 (GMT) |
commit | 57c3cb3cda988dbcbccd62b9595d7a1a2c04c069 (patch) | |
tree | ec2679c0bdd419ed6213c685bcafacf0c49518fa | |
parent | 1c54e91794852de54920529bd78603859ef2e10a (diff) | |
parent | 699440f601523b736d98cfef8f1bddcc2f184a39 (diff) | |
download | SCons-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.xml | 4 |
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> |