17.1.3.1 Replacing /bin/sh shell backquote

Python 2.5

17.1.3.1 Replacing /bin/sh shell backquote

output=`mycmd myarg`
==>
output = Popen(["mycmd", "myarg"], stdout=PIPE).communicate()[0]

See About this document... for information on suggesting changes.