[Python-checkins] cpython (2.7): #16332: use "except OSError as e" in subprocess docs. Patch by Berker Peksag.

ezio.melotti python-checkins at python.org
Fri Oct 26 22:10:18 CEST 2012


http://hg.python.org/cpython/rev/7a69b4077afb
changeset:   79950:7a69b4077afb
branch:      2.7
parent:      79940:361beec678e1
user:        Ezio Melotti <ezio.melotti at gmail.com>
date:        Fri Oct 26 23:10:07 2012 +0300
summary:
  #16332: use "except OSError as e" in subprocess docs.  Patch by Berker Peksag.

files:
  Doc/library/subprocess.rst |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst
--- a/Doc/library/subprocess.rst
+++ b/Doc/library/subprocess.rst
@@ -750,7 +750,7 @@
            print >>sys.stderr, "Child was terminated by signal", -retcode
        else:
            print >>sys.stderr, "Child returned", retcode
-   except OSError, e:
+   except OSError as e:
        print >>sys.stderr, "Execution failed:", e
 
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list