mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Merged revisions 74764 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r74764 | ezio.melotti | 2009-09-13 10:54:02 +0300 (Sun, 13 Sep 2009) | 1 line fixed more examples that were using u"", print without () and unicode/str instead of str/bytes ........
This commit is contained in:
parent
f388053649
commit
713e042152
10 changed files with 50 additions and 52 deletions
|
@ -510,13 +510,13 @@ Return code handling translates as follows::
|
|||
...
|
||||
rc = pipe.close()
|
||||
if rc != None and rc % 256:
|
||||
print "There were some errors"
|
||||
print("There were some errors")
|
||||
==>
|
||||
process = Popen(cmd, 'w', stdin=PIPE)
|
||||
...
|
||||
process.stdin.close()
|
||||
if process.wait() != 0:
|
||||
print "There were some errors"
|
||||
print("There were some errors")
|
||||
|
||||
|
||||
Replacing functions from the :mod:`popen2` module
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue