mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
#16332: use "except OSError as e" in subprocess docs. Patch by Berker Peksag.
This commit is contained in:
parent
8221f86513
commit
e793f44abe
1 changed files with 1 additions and 1 deletions
|
@ -750,7 +750,7 @@ A more realistic example would look like this::
|
||||||
print >>sys.stderr, "Child was terminated by signal", -retcode
|
print >>sys.stderr, "Child was terminated by signal", -retcode
|
||||||
else:
|
else:
|
||||||
print >>sys.stderr, "Child returned", retcode
|
print >>sys.stderr, "Child returned", retcode
|
||||||
except OSError, e:
|
except OSError as e:
|
||||||
print >>sys.stderr, "Execution failed:", e
|
print >>sys.stderr, "Execution failed:", e
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue