diff options
author | Guido van Rossum <guido@python.org> | 1992-01-01 19:35:13 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-01-01 19:35:13 +0000 |
commit | 9ac216e566fe7f81609722902571ecb799d0d23c (patch) | |
tree | 7e5f0d52b8c44e623b12e8f4b5cd645c361e5aeb /Lib/commands.py | |
parent | cfdf58ff71d272899abb9a20d4ee8298571fcb07 (diff) | |
download | cpython-9ac216e566fe7f81609722902571ecb799d0d23c.tar.gz |
New == syntax
Diffstat (limited to 'Lib/commands.py')
-rw-r--r-- | Lib/commands.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/commands.py b/Lib/commands.py index 4d16eefaa4..a6084a5a7b 100644 --- a/Lib/commands.py +++ b/Lib/commands.py @@ -25,8 +25,8 @@ def getstatusoutput(cmd): pipe = posix.popen('{ ' + cmd + '; } 2>&1', 'r') text = pipe.read() sts = pipe.close() - if sts = None: sts = 0 - if text[-1:] = '\n': text = text[:-1] + if sts == None: sts = 0 + if text[-1:] == '\n': text = text[:-1] return sts, text |