mirror of
https://github.com/python/cpython.git
synced 2025-08-29 05:05:03 +00:00
New == syntax
This commit is contained in:
parent
4d8e859e8f
commit
bdfcfccbe5
73 changed files with 419 additions and 391 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue