mirror of
https://github.com/python/cpython.git
synced 2025-08-28 20:56:54 +00:00
Whitespace normalization.
This commit is contained in:
parent
752d3f557e
commit
88869f9787
16 changed files with 1168 additions and 1170 deletions
|
@ -1,9 +1,9 @@
|
|||
"""Execute shell commands via os.popen() and return status, output.
|
||||
|
||||
Interface summary:
|
||||
|
||||
|
||||
import commands
|
||||
|
||||
|
||||
outtext = commands.getoutput(cmd)
|
||||
(exitstatus, outtext) = commands.getstatusoutput(cmd)
|
||||
outtext = commands.getstatus(file) # returns output of "ls -ld file"
|
||||
|
@ -11,7 +11,7 @@ Interface summary:
|
|||
A trailing newline is removed from the output string.
|
||||
|
||||
Encapsulates the basic operation:
|
||||
|
||||
|
||||
pipe = os.popen('{ ' + cmd + '; } 2>&1', 'r')
|
||||
text = pipe.read()
|
||||
sts = pipe.close()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue