From bdfcfccbe591e15221f35add01132174c9b4e669 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 1 Jan 1992 19:35:13 +0000 Subject: New == syntax --- Lib/commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/commands.py') 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 -- cgit v1.2.1