diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-01-14 23:36:06 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-01-14 23:36:06 (GMT) |
commit | 88869f9787cd4ceb2298e4b13980beb057687824 (patch) | |
tree | 653976731f926b5e098bf57b4858a9516af220b5 /Lib/commands.py | |
parent | 752d3f557e95cda98a8b50808cfe2f2d0b8767eb (diff) | |
download | cpython-88869f9787cd4ceb2298e4b13980beb057687824.zip cpython-88869f9787cd4ceb2298e4b13980beb057687824.tar.gz cpython-88869f9787cd4ceb2298e4b13980beb057687824.tar.bz2 |
Whitespace normalization.
Diffstat (limited to 'Lib/commands.py')
-rw-r--r-- | Lib/commands.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/commands.py b/Lib/commands.py index 99387b1..a21460d 100644 --- a/Lib/commands.py +++ b/Lib/commands.py @@ -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() |