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:
Ezio Melotti 2009-09-13 08:13:21 +00:00
parent f388053649
commit 713e042152
10 changed files with 50 additions and 52 deletions

View file

@ -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