commit | bdfcfccbe591e15221f35add01132174c9b4e669 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Wed Jan 01 19:35:13 1992 +0000 |
committer | Guido van Rossum <guido@python.org> | Wed Jan 01 19:35:13 1992 +0000 |
tree | 7e5f0d52b8c44e623b12e8f4b5cd645c361e5aeb | |
parent | 4d8e859e8f0a209a7e999ce9cc0988156c795949 [diff] [blame] |
New == syntax
diff --git a/Lib/commands.py b/Lib/commands.py index 4d16eef..a6084a5 100644 --- a/Lib/commands.py +++ b/Lib/commands.py
@@ -25,8 +25,8 @@ 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