#16332: use "except OSError as e" in subprocess docs. Patch by Berker Peksag.

This commit is contained in:
Ezio Melotti 2012-10-26 23:10:07 +03:00
parent 8221f86513
commit e793f44abe
1 changed files with 1 additions and 1 deletions

View File

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